fixed L10N_DEV option

This commit is contained in:
Danny Coates 2019-03-31 13:03:50 -07:00
parent 219b1d6806
commit 7f76a279c3
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 2 additions and 4 deletions

View file

@ -11,9 +11,7 @@ const langData = require('cldr-core/supplemental/likelySubtags.json');
const acceptLanguages = /(([a-zA-Z]+(-[a-zA-Z0-9]+){0,2})|\*)(;q=[0-1](\.[0-9]+)?)?/g;
function allLangs() {
return fs.readdirSync(
path.join(__dirname, '..', '..', 'dist', 'public', 'locales')
);
return fs.readdirSync(path.join(__dirname, '..', '..', 'public', 'locales'));
}
const languages = config.l10n_dev ? allLangs() : availableLanguages;