diff --git a/src/panels/config/network/dialog-ip-detail.ts b/src/panels/config/network/dialog-ip-detail.ts
index 6d1d3e24a4..e998e9c059 100644
--- a/src/panels/config/network/dialog-ip-detail.ts
+++ b/src/panels/config/network/dialog-ip-detail.ts
@@ -41,20 +41,49 @@ class DialogIPDetail extends LitElement {
@closed=${this.closeDialog}
scrimClickAction
escapeKeyAction
- .heading=${createCloseHeading(this.hass, "IP Information")}
+ .heading=${createCloseHeading(
+ this.hass,
+ this.hass.localize("ui.dialogs.dialog-ip-detail.ip_information")
+ )}
>
${ipv4
? html`
-
IPv4
+
+ ${this.hass.localize("ui.dialogs.dialog-ip-detail.ipv4")}
+
${ipv4.address
- ? html`
IP Address: ${ipv4.address?.join(", ")}
`
+ ? html`
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.ip_address",
+ { address: ipv4.address?.join(", ") }
+ )}
+
`
+ : ""}
+ ${ipv4.gateway
+ ? html`
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.gateway",
+ { gateway: ipv4.gateway }
+ )}
+
`
+ : ""}
+ ${ipv4.method
+ ? html`
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.method",
+ { method: ipv4.method }
+ )}
+
`
: ""}
- ${ipv4.gateway ? html`
Gateway: ${ipv4.gateway}
` : ""}
- ${ipv4.method ? html`
Method: ${ipv4.method}
` : ""}
${ipv4.nameservers?.length
? html`
-
Name Servers: ${ipv4.nameservers?.join(", ")}
+
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.nameservers",
+ { nameservers: ipv4.nameservers?.join(", ") }
+ )}
+
`
: ""}
@@ -63,15 +92,41 @@ class DialogIPDetail extends LitElement {
${ipv6
? html`
-
IPv6
+
+ ${this.hass.localize("ui.dialogs.dialog-ip-detail.ipv6")}
+
${ipv6.address
- ? html`
IP Address: ${ipv6.address?.join(", ")}
`
+ ? html`
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.ip_address",
+ { address: ipv6.address?.join(", ") }
+ )}
+
`
+ : ""}
+ ${ipv6.gateway
+ ? html`
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.gateway",
+ { gateway: ipv6.gateway }
+ )}
+
`
+ : ""}
+ ${ipv6.method
+ ? html`
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.method",
+ { method: ipv6.method }
+ )}
+
`
: ""}
- ${ipv6.gateway ? html`
Gateway: ${ipv6.gateway}
` : ""}
- ${ipv6.method ? html`
Method: ${ipv6.method}
` : ""}
${ipv6.nameservers?.length
? html`
-
Name Servers: ${ipv6.nameservers?.join(", ")}
+
+ ${this.hass.localize(
+ "ui.dialogs.dialog-ip-detail.nameservers",
+ { nameservers: ipv6.nameservers?.join(", ") }
+ )}
+
`
: ""}
diff --git a/src/panels/config/network/ha-config-network.ts b/src/panels/config/network/ha-config-network.ts
index 0d799b281d..25952cd43e 100644
--- a/src/panels/config/network/ha-config-network.ts
+++ b/src/panels/config/network/ha-config-network.ts
@@ -40,7 +40,10 @@ class ConfigNetwork extends LitElement {
}
return html`
-
+
${this._error
? html`
@@ -50,9 +53,9 @@ class ConfigNetwork extends LitElement {
`
: ""}
- Configure which network adapters integrations will use. Currently
- this setting only affects multicast traffic. A restart is required
- for these settings to apply.
+ ${this.hass.localize(
+ "ui.panel.config.network.network_adapter_info"
+ )}
- IP Information
+ ${this.hass.localize(
+ "ui.panel.config.network.ip_information"
+ )}
`;
}
diff --git a/src/translations/en.json b/src/translations/en.json
index b55a6dc042..10dfbe298f 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -1385,6 +1385,15 @@
"message_example": "Hello. How can I assist?",
"message_placeholder": "Enter a sentence to speak.",
"play": "Play"
+ },
+ "dialog-ip-detail": {
+ "ip_information": "[%key:ui::panel::config::network::ip_information%]",
+ "ipv4": "IPv4",
+ "ipv6": "IPv6",
+ "ip_address": "IP Address: {address}",
+ "gateway": "Gateway: {gateway}",
+ "method": "Method: {method}",
+ "nameservers": "Name Servers: {nameservers}"
}
},
"duration": {
@@ -4193,7 +4202,10 @@
"description": "The name your instance will have on your network",
"failed_to_set_hostname": "Setting hostname failed"
}
- }
+ },
+ "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.",
+ "ip_information": "IP Information"
},
"storage": {
"caption": "Storage",