1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Fix cast translations (#5582)

This commit is contained in:
Paulus Schoutsen
2020-04-21 15:02:00 -07:00
committed by GitHub
parent 8786302190
commit 82442bb5ec
61 changed files with 12612 additions and 255 deletions

View File

@@ -12,6 +12,7 @@ import {
} from "../util/register-service-worker";
import "./ha-init-page";
import "./home-assistant-main";
import { setHAVersion } from "../common/config/version";
export class HomeAssistantAppEl extends HassElement {
@property() private _route?: Route;
@@ -69,6 +70,9 @@ export class HomeAssistantAppEl extends HassElement {
protected hassConnected() {
super.hassConnected();
if (__BACKWARDS_COMPAT__) {
setHAVersion(this.hass!.connection.haVersion);
}
// @ts-ignore
this._loadHassTranslations(this.hass!.language, "state");
}