Skip to content

Commit 614d5be

Browse files
committed
move lib/locale-* to lib/locales/* and update scripts accordingly
dist will stay flat, to make script and CDN use consistent
1 parent 592fc9e commit 614d5be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+3
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tasks/bundle.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ constants.partialBundlePaths.forEach(function(pathObj) {
6060
});
6161

6262
// "Browserify" the locales
63-
var localeGlob = path.join(constants.pathToLib, 'locale-*.js');
63+
var localeGlob = path.join(constants.pathToLib, 'locales', '*.js');
6464
glob(localeGlob, function(err, files) {
6565
files.forEach(function(file) {
66-
var outName = 'plotly-' + path.basename(file);
66+
var outName = 'plotly-locale-' + path.basename(file);
6767
var outPath = path.join(constants.pathToDist, outName);
6868
wrapLocale(file, outPath);
6969
});

tasks/pull_date_format.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else {
2929

3030
function pullOneLocale(locale) {
3131
var pathToInput = path.join(pathToWCRegions, locale + '.js');
32-
var pathToOutput = path.join(constants.pathToLib, 'locale-' + locale.toLowerCase() + '.js');
32+
var pathToOutput = path.join(constants.pathToLib, 'locales', locale.toLowerCase() + '.js');
3333

3434
fs.readFile(pathToInput, 'utf8', function(err, wcCode) {
3535
if(err) {

0 commit comments

Comments
 (0)