diff --git a/build/webpack.config.js b/build/webpack.config.js index d15cc848f..d3a91c158 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -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')) { @@ -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 */ diff --git a/package.json b/package.json index 8ba8f31ae..2fbcd1a93 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 3a1cf16da..c0de6dbcf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"