Closed theel0ja closed 7 years ago
locales.forEach((locale) => { const fileName = `${domain}.po` const translationsFilePath = path.join(translationsDir, locale, filename) const translationsContent = fs.readSync(translationsFilePath) const parsedTranslations = po.parse(translationsContent) gt.addTranslations(locale, domain, parsedTranslations) })
Note the fileName and filename
fileName
filename
https://github.com/alexanderwallin/node-gettext#load-and-add-translations-from-mo-or-po-files
Thanks, @theel0ja! Fixed in https://github.com/alexanderwallin/node-gettext/commit/ad3c835645d480eb1769c045660e2c45c4a35584
Note the
fileName
andfilename
https://github.com/alexanderwallin/node-gettext#load-and-add-translations-from-mo-or-po-files