Put the language in diagnostics.

This commit is contained in:
Dermot Duffy
2022-06-11 22:41:12 -07:00
parent eefddd5b76
commit e0a21ff475
2 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -43,7 +43,7 @@ import {
REPO_URL
} from './const.js';
import './editor.js';
import { localize } from './localize/localize.js';
import { getLanguage, localize } from './localize/localize.js';
import './patches/ha-camera-stream.js';
import './patches/ha-hls-player.js';
import './patches/ha-web-rtc-player.ts';
@@ -1369,6 +1369,7 @@ export class FrigateCard extends LitElement {
ha_version: this._hass.config.version,
card_version: CARD_VERSION,
frigate_version: Object.fromEntries(frigateVersionMap),
lang: getLanguage(),
...(this._rawConfig && { config: this._rawConfig }),
},
});