mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Load system health translations from backend (#7643)
This commit is contained in:
parent
2f4e7b388b
commit
fe7d79cee6
@ -17,7 +17,8 @@ export type TranslationCategory =
|
||||
| "config"
|
||||
| "options"
|
||||
| "device_automation"
|
||||
| "mfa_setup";
|
||||
| "mfa_setup"
|
||||
| "system_health";
|
||||
|
||||
export const fetchTranslationPreferences = (hass: HomeAssistant) =>
|
||||
fetchFrontendUserData(hass.connection, "language");
|
||||
|
@ -106,7 +106,7 @@ class SystemHealthCard extends LitElement {
|
||||
<tr>
|
||||
<td>
|
||||
${this.hass.localize(
|
||||
`ui.panel.config.info.system_health.checks.${domain}.${key}`
|
||||
`component.${domain}.system_health.info.${key}`
|
||||
) || key}
|
||||
</td>
|
||||
<td>${value}</td>
|
||||
@ -170,6 +170,8 @@ class SystemHealthCard extends LitElement {
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
|
||||
this.hass!.loadBackendTranslation("system_health");
|
||||
|
||||
if (!this.hass!.config.components.includes("system_health")) {
|
||||
this._info = {
|
||||
system_health: {
|
||||
|
@ -892,39 +892,7 @@
|
||||
"issues": "Issues",
|
||||
"system_health": {
|
||||
"manage": "Manage",
|
||||
"more_info": "more info",
|
||||
"checks": {
|
||||
"homeassistant": {
|
||||
"arch": "CPU Architecture",
|
||||
"dev": "Development",
|
||||
"docker": "Docker",
|
||||
"hassio": "HassOS",
|
||||
"installation_type": "Installation Type",
|
||||
"os_name": "Operating System Name",
|
||||
"os_version": "Operating System Version",
|
||||
"python_version": "Python Version",
|
||||
"timezone": "Timezone",
|
||||
"version": "Version",
|
||||
"virtualenv": "Virtual Environment"
|
||||
},
|
||||
"cloud": {
|
||||
"can_reach_cert_server": "Reach Certificate Server",
|
||||
"can_reach_cloud": "Reach Home Assistant Cloud",
|
||||
"can_reach_cloud_auth": "Reach Authentication Server",
|
||||
"relayer_connected": "Relayer Connected",
|
||||
"remote_connected": "Remote Connected",
|
||||
"remote_enabled": "Remote Enabled",
|
||||
"alexa_enabled": "Alexa Enabled",
|
||||
"google_enabled": "Google Enabled",
|
||||
"logged_in": "Logged In",
|
||||
"subscription_expiration": "Subscription Expiration"
|
||||
},
|
||||
"lovelace": {
|
||||
"dashboards": "Dashboards",
|
||||
"mode": "Mode",
|
||||
"resources": "Resources"
|
||||
}
|
||||
}
|
||||
"more_info": "more info"
|
||||
}
|
||||
},
|
||||
"logs": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user