Skip to content

Commit

Permalink
Chore: Use box-locales to get the locale list (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyajeet authored and tonyjin committed Mar 8, 2018
1 parent 7a5454b commit cac7279
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
30 changes: 2 additions & 28 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const version = isRelease ? require('../package.json').version : 'dev';
const fs = require('fs');
const license = require('./license');
const locales = require('box-locales');

let rsyncLocation = '';
if (fs.existsSync('build/rsync.json')) {
Expand All @@ -27,34 +28,7 @@ const thirdParty = path.resolve('src/third-party');
const staticFolder = path.resolve('dist');

const languages = isRelease
? [
'en-AU',
'en-CA',
'en-GB',
'en-US',
'en-x-pseudo',
'bn-IN',
'da-DK',
'de-DE',
'es-419',
'es-ES',
'fi-FI',
'fr-CA',
'fr-FR',
'hi-IN',
'it-IT',
'ja-JP',
'ko-KR',
'nb-NO',
'nl-NL',
'pl-PL',
'pt-BR',
'ru-RU',
'sv-SE',
'tr-TR',
'zh-CN',
'zh-TW'
]
? locales
: ['en-US']; // Only 1 language needed for dev

/* eslint-disable key-spacing, require-jsdoc */
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"babel-preset-es2016": "^6.24.1",
"babel-preset-react": "^6.23.0",
"box-annotations": "^0.15.0",
"box-locales": "^0.0.1",
"chai": "^4.1.2",
"chai-dom": "^1.5.0",
"codeceptjs-webdriverio": "^1.1.0",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,10 @@ box-annotations@^0.15.0:
rangy "^1.3.0"
rbush "^2.0.1"

box-locales@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/box-locales/-/box-locales-0.0.1.tgz#1724959f293ae85f235b681b775d0f1a52a76b54"

box-react-ui@^22.3.0:
version "22.4.1"
resolved "https://registry.yarnpkg.com/box-react-ui/-/box-react-ui-22.4.1.tgz#f38e787fda409956ab34f9ad982ca18ad6b4e67f"
Expand Down

0 comments on commit cac7279

Please sign in to comment.