use fluent-langneg for subtag support

This commit is contained in:
Danny Coates
2017-11-10 12:40:18 -08:00
parent 4ed515f5a3
commit bfcdf9340d
7 changed files with 51 additions and 46 deletions

View File

@@ -4,11 +4,9 @@ const fs = require('fs');
const path = require('path');
function allLangs() {
const langs = fs.readdirSync(
return fs.readdirSync(
path.join(__dirname, '..', 'dist', 'public', 'locales')
);
langs.unshift('en-US'); // default first, TODO change for fluent-langneg
return langs;
}
if (config.l10n_dev) {