use fluent-langneg for subtag support
This commit is contained in:
parent
4ed515f5a3
commit
bfcdf9340d
7 changed files with 51 additions and 46 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue