fix: locale override not loading (#880)

This commit is contained in:
Comran Morshed 2019-06-15 09:07:16 -07:00 committed by Nicolas Giard
parent 6b72abca9c
commit b690603412

View File

@ -78,7 +78,7 @@ module.exports = {
// -> Load dev locale files if present
if (WIKI.IS_DEBUG) {
try {
const devEntriesRaw = await fs.readFileAsync(path.join(WIKI.SERVERPATH, `locales/${locale}.yml`), 'utf8')
const devEntriesRaw = await fs.readFile(path.join(WIKI.SERVERPATH, `locales/${locale}.yml`), 'utf8')
if (devEntriesRaw) {
const devEntries = yaml.safeLoad(devEntriesRaw)
_.forOwn(devEntries, (data, ns) => {