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