Pass language to charts and fix JS error (#847)

This commit is contained in:
Andrey 2018-01-29 10:28:03 +02:00 committed by Paulus Schoutsen
parent a1b578f81e
commit 0256f73404
2 changed files with 2 additions and 1 deletions

View File

@ -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),

View File

@ -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
); );
} }