Miss any of our Open RFC calls?Watch the recordings here! »

@lingui/babel-plugin-extract-messages

2.9.1 • 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

Install

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

DownloadsWeekly Downloads

36,481

Version

2.9.1

License

MIT

Unpacked Size

21.7 kB

Total Files

5

Last publish

Collaborators

  • avatar