mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 18:06:36 +00:00
Make quotation marks localizable in Add badge dialog (#23383)
* Add quotation and question marks to en.json for localization Currently the quotation marks are hard-coded. This commit puts them into the strings file and adds the missing question mark at the end. * Remove hard-coded quotation marks from hui-dialog-create-badge.ts
This commit is contained in:
parent
8fa36c8226
commit
a35ba38a2d
@ -81,7 +81,7 @@ export class HuiCreateDialogBadge
|
||||
const title = this._containerConfig.title
|
||||
? this.hass!.localize(
|
||||
"ui.panel.lovelace.editor.edit_badge.pick_badge_title",
|
||||
{ name: `"${this._containerConfig.title}"` }
|
||||
{ name: this._containerConfig.title }
|
||||
)
|
||||
: this.hass!.localize("ui.panel.lovelace.editor.edit_badge.pick_badge");
|
||||
|
||||
|
@ -6048,7 +6048,7 @@
|
||||
"header": "Badge configuration",
|
||||
"typed_header": "{type} Badge configuration",
|
||||
"pick_badge": "Which badge would you like to add?",
|
||||
"pick_badge_title": "Which badge would you like to add to {name}",
|
||||
"pick_badge_title": "Which badge would you like to add to \"{name}\"?",
|
||||
"toggle_editor": "[%key:ui::panel::lovelace::editor::edit_card::toggle_editor%]",
|
||||
"unsaved_changes": "[%key:ui::panel::lovelace::editor::edit_card::unsaved_changes%]",
|
||||
"confirm_cancel": "[%key:ui::panel::lovelace::editor::edit_card::confirm_cancel%]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user