@lingui/babel-plugin-transform-react

Transform React components to ICU message format

Stats

StarsIssuesVersionUpdatedCreatedSize
@lingui/babel-plugin-transform-react
2.9.2a year ago4 years agoMinified + gzip package size for @lingui/babel-plugin-transform-react in KB

Readme

License Version Downloads

@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 LinguiJS. See the documentation for all information, tutorials and examples.

Installation

npm install --save-dev @lingui/babel-plugin-transform-react
# 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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.