Localize some strings in integration panel (#19200)

This commit is contained in:
karwosts 2023-12-30 09:37:50 -08:00 committed by GitHub
parent c584f83071
commit 721ec8e559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -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(

View File

@ -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",