mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Localize some strings in integration panel (#19200)
This commit is contained in:
parent
c584f83071
commit
721ec8e559
@ -340,7 +340,9 @@ class AddIntegrationDialog extends LitElement {
|
||||
!("integrations" in integration) &&
|
||||
!this._flowsInProgress?.length
|
||||
) {
|
||||
return "What type of device is it?";
|
||||
return this.hass.localize(
|
||||
"ui.panel.config.integrations.what_device_type"
|
||||
);
|
||||
}
|
||||
if (
|
||||
integration &&
|
||||
@ -348,9 +350,11 @@ class AddIntegrationDialog extends LitElement {
|
||||
!("integrations" in integration) &&
|
||||
this._flowsInProgress?.length
|
||||
) {
|
||||
return "Want to add these discovered devices?";
|
||||
return this.hass.localize(
|
||||
"ui.panel.config.integrations.confirm_add_discovered"
|
||||
);
|
||||
}
|
||||
return "What do you want to add?";
|
||||
return this.hass.localize("ui.panel.config.integrations.what_to_add");
|
||||
}
|
||||
|
||||
private _renderIntegration(
|
||||
|
@ -3799,6 +3799,9 @@
|
||||
"add_zwave_js_device": "Add Z-Wave device",
|
||||
"add_zha_device": "Add Zigbee device",
|
||||
"add_matter_device": "Add Matter device",
|
||||
"what_device_type": "What type of device is it?",
|
||||
"what_to_add": "What do you want to add?",
|
||||
"confirm_add_discovered": "Want to add these discovered devices?",
|
||||
"disable": {
|
||||
"show_disabled": "Show disabled integrations",
|
||||
"disabled_integrations": "{number} disabled",
|
||||
|
Loading…
x
Reference in New Issue
Block a user