Commit b6906034 authored by Comran Morshed's avatar Comran Morshed Committed by Nicolas Giard

fix: locale override not loading (#880)

parent 6b72abca
...@@ -78,7 +78,7 @@ module.exports = { ...@@ -78,7 +78,7 @@ module.exports = {
// -> Load dev locale files if present // -> Load dev locale files if present
if (WIKI.IS_DEBUG) { if (WIKI.IS_DEBUG) {
try { 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) { if (devEntriesRaw) {
const devEntries = yaml.safeLoad(devEntriesRaw) const devEntries = yaml.safeLoad(devEntriesRaw)
_.forOwn(devEntries, (data, ns) => { _.forOwn(devEntries, (data, ns) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment