Translated a bunch of strings#4137
Conversation
- added translation key-value pairs to en.json - translated form-customize, customize-icon and its key-value
- devices - entity-registry - config-entry - dashboard -> hint to advanced mode toggle
…lymer into variousTranslations
| "include_sentence": "It seems that your configuration.yaml doesn't properly", | ||
| "include_link": "include customize.yaml", |
There was a problem hiding this comment.
We should bring include to the other key and include the link as a variable in that string.
There was a problem hiding this comment.
I am not quite sure what you mean by that. Do you want to pass the entire <a> into one translation string?
There was a problem hiding this comment.
Like this?
"include_sentence": "It seems that your configuration.yaml doesn't properly {link}"There was a problem hiding this comment.
I would do:
"include_sentence": "It seems that your configuration.yaml doesn't properly include {customize_link}"
There was a problem hiding this comment.
That looks like the way to do it properly 👍
There was a problem hiding this comment.
Oddly enough, I cannot pass the entire <a> into the string:
[[localize('ui.panel.config.customize.warning.include_sentence',
'customize_link',
'<a
href="https://www.home-assistant.io/docs/configuration/customizing-devices/#customization-using-the-ui"
target="_blank"
>configuration.yaml</a>')]]Just prints it out like that as the innerHTML of the div element.
Does the localize function filter html elements?
There was a problem hiding this comment.
yeah probably... OK, never mind what I said.
There was a problem hiding this comment.
So how should I address this? Just leave it like that or is there any other option?
| return html` | ||
| <hass-error-screen error="Device not found."></hass-error-screen> | ||
| <hass-error-screen | ||
| error="${this.hass.localize( |
There was a problem hiding this comment.
If a value is dynamic you can drop the " around them.
Issues affected: #3429
Translated:
Results: (showing all translations even errors)


