diff --git a/app/assets/js/langloader.js b/app/assets/js/langloader.js index 4e13d93..24ab84a 100644 --- a/app/assets/js/langloader.js +++ b/app/assets/js/langloader.js @@ -4,7 +4,7 @@ const path = require('path') let lang exports.loadLanguage = function(id){ - lang = JSON.parse(fs.readFileSync(path.resolve('app', 'assets', 'lang', `${id}.json`))) || {} + lang = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'lang', `${id}.json`))) || {} } exports.query = function(id){