var locale = file.slice(0, -3);\r
\r
if ((file.slice(-3) === '.po') && (locale !== 'template')) {\r
- po2json.parse(__dirname + '/src/translations/' + file, function (err, json) {\r
+ po2json.parseFile(__dirname + '/src/translations/' + file, {format: 'jed', domain: locale}, function (err, json) {\r
if (!err) {\r
+\r
fs.writeFile(__dirname + '/assets/locales/' + locale + '.json', JSON.stringify(json), function (err) {\r
if (!err) {\r
console.log('Built translation file %s.json', locale);\r
\r
continueStart = function (locale, s, xhr) {\r
if (locale) {\r
- _kiwi.global.i18n = new Jed({locale_data: locale, domain: xhr.getResponseHeader('Content-Language')});\r
+ _kiwi.global.i18n = new Jed(locale);\r
} else {\r
_kiwi.global.i18n = new Jed();\r
}\r