Fix error with loading lang file from packaged app.
This commit is contained in:
parent
c141475404
commit
887bb67ab0
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user