fix: locale override not loading (#880)

pull/884/head
Comran Morshed 5 years ago committed by Nicolas Giard
parent 6b72abca9c
commit b690603412

@ -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) => {

Loading…
Cancel
Save