Skip to content

Commit 4b48038

Browse files
committed
convert locales to json, only en(US)? in bundles, and build all locales for dist
1 parent daf0884 commit 4b48038

18 files changed

+99
-56
lines changed

dist/plotly-locale-en-us.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-en.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index-basic.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Plotly.register([
1616
]);
1717

1818
// locales
19-
Plotly.register(require('./locales.js'));
19+
Plotly.register([
20+
require('./locale-en.json'),
21+
require('./locale-en-us.json')
22+
]);
2023

2124
module.exports = Plotly;

lib/index-cartesian.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Plotly.register([
2424
]);
2525

2626
// locales
27-
Plotly.register(require('./locales.js'));
27+
Plotly.register([
28+
require('./locale-en.json'),
29+
require('./locale-en-us.json')
30+
]);
2831

2932
module.exports = Plotly;

lib/index-finance.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Plotly.register([
1919
]);
2020

2121
// locales
22-
Plotly.register(require('./locales.js'));
22+
Plotly.register([
23+
require('./locale-en.json'),
24+
require('./locale-en-us.json')
25+
]);
2326

2427
module.exports = Plotly;

lib/index-geo.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Plotly.register([
1616
]);
1717

1818
// locales
19-
Plotly.register(require('./locales.js'));
19+
Plotly.register([
20+
require('./locale-en.json'),
21+
require('./locale-en-us.json')
22+
]);
2023

2124
module.exports = Plotly;

lib/index-gl2d.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Plotly.register([
1919
]);
2020

2121
// locales
22-
Plotly.register(require('./locales.js'));
22+
Plotly.register([
23+
require('./locale-en.json'),
24+
require('./locale-en-us.json')
25+
]);
2326

2427
module.exports = Plotly;

lib/index-gl3d.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Plotly.register([
1717
]);
1818

1919
// locales
20-
Plotly.register(require('./locales.js'));
20+
Plotly.register([
21+
require('./locale-en.json'),
22+
require('./locale-en-us.json')
23+
]);
2124

2225
module.exports = Plotly;

lib/index-mapbox.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Plotly.register([
1515
]);
1616

1717
// locales
18-
Plotly.register(require('./locales.js'));
18+
Plotly.register([
19+
require('./locale-en.json'),
20+
require('./locale-en-us.json')
21+
]);
1922

2023
module.exports = Plotly;

lib/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ Plotly.register([
7272
]);
7373

7474
// locales
75-
Plotly.register(require('./locales.js'));
75+
Plotly.register([
76+
require('./locale-en.json'),
77+
require('./locale-en-us.json')
78+
]);
7679

7780
module.exports = Plotly;

0 commit comments

Comments
 (0)