Pass translation placeholders to repair title translations (#13289)

This commit is contained in:
Paulus Schoutsen 2022-07-27 12:30:22 -07:00 committed by GitHub
parent c08be957ce
commit 1dc68b72da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -48,7 +48,8 @@ class DialogRepairsIssue extends LitElement {
this.hass.localize(
`component.${this._issue.domain}.issues.${
this._issue.translation_key || this._issue.issue_id
}.title`
}.title`,
this._issue.translation_placeholders || {}
) || this.hass!.localize("ui.panel.config.repairs.dialog.title")
)}
>

View File

@ -66,7 +66,8 @@ class HaConfigRepairs extends LitElement {
>${this.hass.localize(
`component.${issue.domain}.issues.${
issue.translation_key || issue.issue_id
}.title`
}.title`,
issue.translation_placeholders || {}
)}</span
>
<span slot="secondary" class="secondary">

View File

@ -577,7 +577,7 @@
"title": "Media Management",
"manage": "Manage",
"no_items": "No media items found",
"folders_not_supported": "Folders can not be managed via the UI.",
"folders_not_supported": "Folders cannot be managed via the UI.",
"highlight_button": "Click here to upload your first media",
"upload_failed": "Upload failed: {reason}",
"add_media": "Add Media",
@ -1246,7 +1246,7 @@
"learn": "Learn more",
"ignore": "Ignore",
"unignore": "Unignore",
"alert_not_fixable": "We can not repair this issue for you.",
"alert_not_fixable": "We cannot repair this issue for you.",
"breaks_in_version": "This will break in version {version}. Please fix this issue before upgrading.",
"ignored_in_version_short": "Ignored in version {version}",
"ignored_in_version": "This issue was ignored in version {version}."