# @lingui/babel-plugin-transform-js

> Transform lingui-i18n methods to ICU message format

Latest version **2.9.2** (published 2020-09-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @lingui/babel-plugin-transform-js
pnpm add @lingui/babel-plugin-transform-js
yarn add @lingui/babel-plugin-transform-js
bun add @lingui/babel-plugin-transform-js
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.9.2 |
| Published | 2020-09-11 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0 |
| Dependencies | 0 |
| Unpacked size | 29.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5900 |
| Author | Tomáš Ehrlich |
| Maintainers | tricoder |
| Keywords | babel-plugin |

## Links

- npm: https://www.npmjs.com/package/@lingui/babel-plugin-transform-js
- Repository: https://github.com/lingui/js-lingui
- Homepage: https://github.com/lingui/js-lingui#readme
- Issues: https://github.com/lingui/js-lingui/issues
- npm.io page: https://npm.io/package/@lingui/babel-plugin-transform-js

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.9.2 (latest) — 2020-09-11
- 2.2.0-11 (next) — 2018-07-09
- 2.9.1 — 2020-01-18
- 2.9.0 — 2019-12-02
- 2.8.3 — 2019-05-22
- 2.8.2 — 2019-05-22
- 2.8.1 — 2019-05-17
- 2.8.0 — 2019-05-17
- 2.7.4 — 2019-02-19
- 2.7.3 — 2019-01-28
- 2.7.2 — 2018-11-14
- 2.7.1 — 2018-11-12
- 2.7.0 — 2018-09-10
- 2.6.1 — 2018-09-03
- 2.6.0 — 2018-08-31
- … 27 more at https://npm.io/package/@lingui/babel-plugin-transform-js/versions

## README

[![License][Badge-License]][License]
[![Version][Badge-Version]][Package]
[![Downloads][Badge-Downloads]][Package]

# @lingui/babel-plugin-transform-js

> Babel plugin which transforms messages written using `lingui-i18n` functions to static ICU MessageFormat.

`@lingui/babel-plugin-transform-js` is part of [LinguiJS][LinguiJS]. See the [documentation][Documentation] for all information, tutorials and examples.

## Installation

```sh
npm install --save-dev @lingui/babel-plugin-transform-js
# yarn add --dev @lingui/babel-plugin-transform-js
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["@lingui/babel-plugin-transform-js"]
}
```

### Via CLI

```sh
babel --plugins @lingui/babel-plugin-transform-js script.js
```

### Via Node API

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

## License

[MIT][License]

[License]: https://github.com/lingui/js-lingui/blob/master/LICENSE
[LinguiJS]: https://github.com/lingui/js-lingui
[Documentation]: https://lingui.js.org/
[Package]: https://www.npmjs.com/package/@lingui/babel-plugin-transform-js
[Badge-Downloads]: https://img.shields.io/npm/dw/@lingui/babel-plugin-transform-js.svg
[Badge-Version]: https://img.shields.io/npm/v/@lingui/babel-plugin-transform-js.svg 
[Badge-License]: https://img.shields.io/npm/l/@lingui/babel-plugin-transform-js.svg

---
_Source: https://npm.io/package/@lingui/babel-plugin-transform-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
