Skip to content

Instantly share code, notes, and snippets.

@stephenash
Created October 1, 2015 17:36
Show Gist options
  • Save stephenash/caac6f17c878589ee5b9 to your computer and use it in GitHub Desktop.
Save stephenash/caac6f17c878589ee5b9 to your computer and use it in GitHub Desktop.
i18next-conv bug

0.1.4

$ npm install i18next-conv@0.1.4
$ ./node_modules/.bin/i18next-conv --quiet -l en -s sample.json -t output-0.1.4.po
$ head -1 output-0.1.4.po
msgid ""

$ ./node_modules/.bin/i18next-conv --quiet -l en -s sample.json -t output-0.1.4.mo
$ head -1 output-0.1.4.mo
??,,<=?C?HelloProject-Id-Version: node-gettext

0.1.5

$ npm install i18next-conv@0.1.5
$ ./node_modules/.bin/i18next-conv --quiet -l en -s sample.json -t output-0.1.5.po
$ head -1 output-0.1.5.po
??,,<=?C?HelloProject-Id-Version: node-gettext

$ ./node_modules/.bin/i18next-conv --quiet -l en -s sample.json -t output-0.1.5.mo
$ head -1 output-0.1.5.mo
??,,<=?C?HelloProject-Id-Version: node-gettext
fiï,,<=•CÈHelloProject-Id-Version: node-gettext
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1)
World
msgid ""
msgstr ""
"Project-Id-Version: node-gettext\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
msgid "Hello"
msgstr "World"
fiï,,<=•CÈHelloProject-Id-Version: node-gettext
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1)
World
fiï,,<=•CÈHelloProject-Id-Version: node-gettext
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1)
World
{
"Hello": "World"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment