babel-plugin-convert-to-i18next
Convert po file (gettext) formats to i18next json on import. Support version node 6 and Babel 7. (Tested version)
Example
In
const fr =
Out
const fr = <JSON>
Installation
$ npm install babel-plugin-convert-to-i18next
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins convert-to-i18next script.js
Via Node API
;