babel-plugin-lingui-transform-js
Babel plugin which transforms messages written using lingui-i18n
functions to static ICU MessageFormat.
babel-plugin-lingui-transform-js
is part of js-lingui. See the documentation for all information, tutorials and examples.
Installation
yarn add --dev babel-plugin-lingui-transform-js
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["lingui-transform-js"]
}
Via CLI
babel --plugins lingui-transform-js script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["lingui-transform-js"]
})
License
MIT