Skip to content

Commit 1275661

Browse files
committed
convert locales back into js instead of json
1 parent 4b8f980 commit 1275661

15 files changed

+67
-42
lines changed

lib/index-basic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Plotly.register([
1717

1818
// locales
1919
Plotly.register([
20-
require('./locale-en.json'),
21-
require('./locale-en-us.json')
20+
require('./locale-en'),
21+
require('./locale-en-us')
2222
]);
2323

2424
module.exports = Plotly;

lib/index-cartesian.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Plotly.register([
2525

2626
// locales
2727
Plotly.register([
28-
require('./locale-en.json'),
29-
require('./locale-en-us.json')
28+
require('./locale-en'),
29+
require('./locale-en-us')
3030
]);
3131

3232
module.exports = Plotly;

lib/index-finance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Plotly.register([
2020

2121
// locales
2222
Plotly.register([
23-
require('./locale-en.json'),
24-
require('./locale-en-us.json')
23+
require('./locale-en'),
24+
require('./locale-en-us')
2525
]);
2626

2727
module.exports = Plotly;

lib/index-geo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Plotly.register([
1717

1818
// locales
1919
Plotly.register([
20-
require('./locale-en.json'),
21-
require('./locale-en-us.json')
20+
require('./locale-en'),
21+
require('./locale-en-us')
2222
]);
2323

2424
module.exports = Plotly;

lib/index-gl2d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Plotly.register([
2020

2121
// locales
2222
Plotly.register([
23-
require('./locale-en.json'),
24-
require('./locale-en-us.json')
23+
require('./locale-en'),
24+
require('./locale-en-us')
2525
]);
2626

2727
module.exports = Plotly;

lib/index-gl3d.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Plotly.register([
1818

1919
// locales
2020
Plotly.register([
21-
require('./locale-en.json'),
22-
require('./locale-en-us.json')
21+
require('./locale-en'),
22+
require('./locale-en-us')
2323
]);
2424

2525
module.exports = Plotly;

lib/index-mapbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Plotly.register([
1616

1717
// locales
1818
Plotly.register([
19-
require('./locale-en.json'),
20-
require('./locale-en-us.json')
19+
require('./locale-en'),
20+
require('./locale-en-us')
2121
]);
2222

2323
module.exports = Plotly;

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ Plotly.register([
7373

7474
// locales
7575
Plotly.register([
76-
require('./locale-en.json'),
77-
require('./locale-en-us.json')
76+
require('./locale-en.js'),
77+
require('./locale-en-us.js')
7878
]);
7979

8080
module.exports = Plotly;

lib/locale-en-us.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright 2012-2017, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = {
12+
moduleType: 'locale',
13+
name: 'en-US',
14+
dictionary: {
15+
'Click to enter Colorscale title': 'Click to enter Colorscale title'
16+
}
17+
};

lib/locale-en-us.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)