This package has been deprecated

Author message:

package deprecated, use @lingui/macro instead

@lingui/babel-plugin-transform-react

2.9.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @lingui/babel-plugin-transform-react

Weekly Downloads

9,389

Version

2.9.2

License

MIT

Unpacked Size

39.3 kB

Total Files

7

Last publish

Collaborators

  • andrii.bodnar
  • serhiydmytryshyn