In some cases like used in NW.js, Electron, when the webapp packaged into a desktop app, the function loadJSON(file, from) can't find the right file cause the path is i18n/ but not ./i18n/
fix it like:
return JSON.parse(fs.readFileSync('./' + path.join(from, file + '.json')));
In some cases like used in NW.js, Electron, when the webapp packaged into a desktop app, the
function loadJSON(file, from)can't find the right file cause the path isi18n/but not./i18n/fix it like: