About Localization
-
The software is perfect that I can't wait to kick off on it. But there's some problem while I was trying to add Chinese to the language set. Is it ok to just add a new folder to /public/language? Every time I do that, even if I just simply copy a folder from the existing ones and modify the language.json, it throws an error and the process goes off. I guess it's not that easy?
-
@baris
/Users/xxx/node/NodeBB/public/language/cn/.DS_Store:1
(function (exports, require, module, __filename, __dirname) {
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/bill/node/NodeBB/public/src/translator.js:189:66
at /Users/bill/node/NodeBB/public/src/utils.js:56:9
at Object.oncomplete (fs.js:107:15)Just like this...I've fixed it. Mac automatically adds this file into the folder and in language.js it reads every file in the folder...