Have ideas to improve npm?Join in the discussion! »

    @lingui/babel-plugin-extract-messages

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

    52,006

    Version

    3.10.2

    License

    MIT

    Unpacked Size

    14.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar