fixed locale path on dev
This commit is contained in:
parent
9ae7e3df11
commit
1655094ce3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue