Permalink
Browse files

Fixes readSync() -> readFileSync()

  • Loading branch information...
alexanderwallin committed Jan 23, 2018
1 parent fff28fc commit a9c955c1ea2069b487927ca9c9d46a1981641a12
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -106,7 +106,7 @@ const gt = new Gettext()
locales.forEach((locale) => {
const fileName = `${domain}.po`
const translationsFilePath = path.join(translationsDir, locale, fileName)
- const translationsContent = fs.readSync(translationsFilePath)
+ const translationsContent = fs.readFileSync(translationsFilePath)
const parsedTranslations = po.parse(translationsContent)
gt.addTranslations(locale, domain, parsedTranslations)

0 comments on commit a9c955c

Please sign in to comment.