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

This commit is contained in:
Andrey
2018-01-29 00:28:03 -08:00
committed by Paulus Schoutsen
parent a1b578f81e
commit 0256f73404
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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),
+1 -1
View File
@@ -140,7 +140,7 @@
super.connectedCallback();
this.filterChanged(
this.filterType, this.entityId, this.startTime, this.endTime,
this.cacheConfig
this.cacheConfig, this.localize, this.language
);
}