mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +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"
|
| "config"
|
||||||
| "options"
|
| "options"
|
||||||
| "device_automation"
|
| "device_automation"
|
||||||
| "mfa_setup";
|
| "mfa_setup"
|
||||||
|
| "system_health";
|
||||||
|
|
||||||
export const fetchTranslationPreferences = (hass: HomeAssistant) =>
|
export const fetchTranslationPreferences = (hass: HomeAssistant) =>
|
||||||
fetchFrontendUserData(hass.connection, "language");
|
fetchFrontendUserData(hass.connection, "language");
|
||||||
|
@ -106,7 +106,7 @@ class SystemHealthCard extends LitElement {
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
`ui.panel.config.info.system_health.checks.${domain}.${key}`
|
`component.${domain}.system_health.info.${key}`
|
||||||
) || key}
|
) || key}
|
||||||
</td>
|
</td>
|
||||||
<td>${value}</td>
|
<td>${value}</td>
|
||||||
@ -170,6 +170,8 @@ class SystemHealthCard extends LitElement {
|
|||||||
protected firstUpdated(changedProps) {
|
protected firstUpdated(changedProps) {
|
||||||
super.firstUpdated(changedProps);
|
super.firstUpdated(changedProps);
|
||||||
|
|
||||||
|
this.hass!.loadBackendTranslation("system_health");
|
||||||
|
|
||||||
if (!this.hass!.config.components.includes("system_health")) {
|
if (!this.hass!.config.components.includes("system_health")) {
|
||||||
this._info = {
|
this._info = {
|
||||||
system_health: {
|
system_health: {
|
||||||
|
@ -892,39 +892,7 @@
|
|||||||
"issues": "Issues",
|
"issues": "Issues",
|
||||||
"system_health": {
|
"system_health": {
|
||||||
"manage": "Manage",
|
"manage": "Manage",
|
||||||
"more_info": "more info",
|
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"logs": {
|
"logs": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user