Socket
Socket
Sign inDemoInstall

@lingui/babel-plugin-transform-react

Package Overview
Dependencies
0
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lingui/babel-plugin-transform-react

Transform React components to ICU message format


Version published
Weekly downloads
9.4K
decreased by-12.87%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

2.7.0 (2018-09-10)

🔥 Babel Macros 🎣 are finally released! After few weeks of fiddling with API, i18n macros are finally out without a breaking release. This is the first part of RFC-001, final form be delivered in next release.

Important: Macros are completely optional and Babel plugins will work until v3. It's not mandatory to migrate to macro, but recommended.

New Features

Bug Fixes

  • CLI: how help for unrecognized commands (#308). Thanks to An Nguyen.
  • Fix Flow types (#306).

<a name="2.6.1"></a>

Readme

Source

License Version Downloads

@lingui/babel-plugin-transform-react

Babel plugin which transforms content of components from lingui-react to ICU MessageFormat.

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

Installation

npm install --save-dev @lingui/babel-plugin-transform-react
# yarn add --dev @lingui/babel-plugin-transform-react

Usage

.babelrc

{
  "plugins": ["@lingui/babel-plugin-transform-react"]
}

Via CLI

babel --plugins @lingui/babel-plugin-transform-react script.js

Via Node API

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

License

MIT

Keywords

FAQs

Last updated on 10 Sep 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc