@lingui/babel-plugin-extract-messages

Babel plugin for collecting messages from source code for internationalization

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
3,09623Jun 19, 2021Jan 17, 2017Minified + gzip package size for @lingui/babel-plugin-extract-messages in KB

Readme

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

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.