mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Pass language to charts and fix JS error (#847)
This commit is contained in:
parent
a1b578f81e
commit
0256f73404
@ -105,6 +105,7 @@ class StateHistoryCharts extends Polymer.Element {
|
|||||||
_googleApiLoaded() {
|
_googleApiLoaded() {
|
||||||
window.google.load('visualization', '1', {
|
window.google.load('visualization', '1', {
|
||||||
packages: ['timeline', 'corechart'],
|
packages: ['timeline', 'corechart'],
|
||||||
|
language: navigator.language,
|
||||||
callback: function () {
|
callback: function () {
|
||||||
this._apiLoaded = true;
|
this._apiLoaded = true;
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
this.filterChanged(
|
this.filterChanged(
|
||||||
this.filterType, this.entityId, this.startTime, this.endTime,
|
this.filterType, this.entityId, this.startTime, this.endTime,
|
||||||
this.cacheConfig
|
this.cacheConfig, this.localize, this.language
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user