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
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
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) {