Add network adapter translations (#24096)

This commit is contained in:
Wendelin 2025-02-06 08:49:05 +01:00 committed by Bram Kragten
parent bf962b29af
commit dcb04067b8
2 changed files with 19 additions and 7 deletions

View File

@ -64,9 +64,13 @@ export class HaNetwork extends LitElement {
> >
</ha-checkbox> </ha-checkbox>
</span> </span>
<span slot="heading" data-for="auto_configure"> Auto Configure </span> <span slot="heading" data-for="auto_configure">
${this.hass.localize(
"ui.panel.config.network.adapter.auto_configure"
)}
</span>
<span slot="description" data-for="auto_configure"> <span slot="description" data-for="auto_configure">
Detected: ${this.hass.localize("ui.panel.config.network.adapter.detected")}:
${format_auto_detected_interfaces(this.networkConfig.adapters)} ${format_auto_detected_interfaces(this.networkConfig.adapters)}
</span> </span>
</ha-settings-row> </ha-settings-row>
@ -85,18 +89,21 @@ export class HaNetwork extends LitElement {
</ha-checkbox> </ha-checkbox>
</span> </span>
<span slot="heading"> <span slot="heading">
Adapter: ${adapter.name} ${this.hass.localize(
"ui.panel.config.network.adapter.adapter"
)}:
${adapter.name}
${adapter.default ${adapter.default
? html`<ha-svg-icon .path=${mdiStar}></ha-svg-icon> ? html`<ha-svg-icon .path=${mdiStar}></ha-svg-icon>
(Default)` (${this.hass.localize("ui.common.default")})`
: ""} : nothing}
</span> </span>
<span slot="description"> <span slot="description">
${format_addresses([...adapter.ipv4, ...adapter.ipv6])} ${format_addresses([...adapter.ipv4, ...adapter.ipv6])}
</span> </span>
</ha-settings-row>` </ha-settings-row>`
) )
: ""} : nothing}
`; `;
} }

View File

@ -6122,7 +6122,12 @@
}, },
"network_adapter": "Network adapter", "network_adapter": "Network adapter",
"network_adapter_info": "Configure which network adapters integrations will use. Currently this setting only affects multicast traffic. A restart is required for these settings to apply.", "network_adapter_info": "Configure which network adapters integrations will use. Currently this setting only affects multicast traffic. A restart is required for these settings to apply.",
"ip_information": "IP Information" "ip_information": "IP Information",
"adapter": {
"auto_configure": "Auto configure",
"detected": "Detected",
"adapter": "Adapter"
}
}, },
"storage": { "storage": {
"caption": "Storage", "caption": "Storage",