Skip to content

Commit d930cd8

Browse files
authored
Merge pull request #151 from Scarygami/master
Configurable language/locale
2 parents 3ff2b4e + f001e8b commit d930cd8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

google-chart-loader.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@
162162
return;
163163
}
164164
packagesToLoad = {};
165-
google.charts.load('current', {'packages': packages});
165+
google.charts.load('current', {
166+
'packages': packages,
167+
'language': document.documentElement.lang || 'en'
168+
});
166169
google.charts.setOnLoadCallback(function() {
167170
packages.forEach(function(pkg) {
168171
this.fire('loaded', pkg);

google-chart.html

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
- Via the `view` attribute, passing in a Google DataView object:
4949
5050
view='{{dataView}}'
51+
52+
You can display the charts in locales other than "en" by setting the `lang` attribute
53+
on the `html` tag of your document.
54+
55+
<html lang="ja">
56+
5157
@demo
5258
-->
5359
<dom-module id="google-chart">

0 commit comments

Comments
 (0)