@lingui/babel-plugin-extract-messages
TypeScript icon, indicating that this package has built-in type declarations

4.14.0 • Public • Published

License Version Downloads

@lingui/babel-plugin-extract-messages

Babel plugin which extracts messages for translation from source files

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

Installation

npm install --save-dev @lingui/babel-plugin-extract-messages
# yarn add --dev @lingui/babel-plugin-extract-messages

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@lingui/babel-plugin-extract-messages"]
}

Via CLI

babel --plugins @lingui/babel-plugin-extract-messages script.js

Via Node API

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

License

MIT

Package Sidebar

Install

npm i @lingui/babel-plugin-extract-messages

Weekly Downloads

140,078

Version

4.14.0

License

MIT

Unpacked Size

25 kB

Total Files

9

Last publish

Collaborators

  • andrii.bodnar
  • serhiydmytryshyn