fixed locale path on dev

This commit is contained in:
Danny Coates 2017-08-25 11:43:59 -07:00
parent 9ae7e3df11
commit 1655094ce3
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 3 additions and 1 deletions

View File

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