diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 4296c173494b6..5ab3d5ae1e5ac 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -57,10 +57,9 @@ const getAvailableTranslationCodes = () => { .filter(dirName => !dirName.startsWith('__')) .map(dirName => dirName.replace('_', '-')) .map(dirName => LOCALE_CODE_MAPPING[dirName] || dirName); - } - else { + } else { // Indicates to the MomentLocalesPlugin that we only want to keep 'en'. - return [] + return []; } };