mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +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() {
|
||||
window.google.load('visualization', '1', {
|
||||
packages: ['timeline', 'corechart'],
|
||||
language: navigator.language,
|
||||
callback: function () {
|
||||
this._apiLoaded = true;
|
||||
}.bind(this),
|
||||
|
@ -140,7 +140,7 @@
|
||||
super.connectedCallback();
|
||||
this.filterChanged(
|
||||
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