This package has been deprecated

Author message:

package deprecated, use @lingui/macro instead

@lingui/babel-plugin-transform-js

2.9.2 • Public • Published

License Version Downloads

@lingui/babel-plugin-transform-js

Babel plugin which transforms messages written using lingui-i18n functions to static ICU MessageFormat.

@lingui/babel-plugin-transform-js is part of LinguiJS. See the documentation for all information, tutorials and examples.

Installation

npm install --save-dev @lingui/babel-plugin-transform-js
# yarn add --dev @lingui/babel-plugin-transform-js

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@lingui/babel-plugin-transform-js"]
}

Via CLI

babel --plugins @lingui/babel-plugin-transform-js script.js

Via Node API

require("@babel/core").transform("code", {
  plugins: ["@lingui/babel-plugin-transform-js"]
})

License

MIT

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

7,108

Version

2.9.2

License

MIT

Unpacked Size

30.3 kB

Total Files

7

Last publish

Collaborators

  • andrii.bodnar
  • serhiydmytryshyn