JSPM

  • Created
  • Published
  • Downloads 5270
  • Score
    100M100P100Q23170F
  • License MIT

Transform lingui-i18n methods to ICU message format

Package Exports

  • @lingui/babel-plugin-transform-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lingui/babel-plugin-transform-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

License Version Downloads

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

Usage

.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