From 887bb67ab057afab8fda13fdff2b19b2133b9c14 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Tue, 23 Apr 2019 16:53:32 -0400 Subject: [PATCH] Fix error with loading lang file from packaged app. --- app/assets/js/langloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/js/langloader.js b/app/assets/js/langloader.js index 4e13d93b..24ab84ae 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){