# babel-plugin-convert-to-i18next

> Convert po gettext file formats to i18next json on import

Latest version **1.0.2** (published 2019-04-01) · 0 weekly downloads

## Install

```sh
npm install babel-plugin-convert-to-i18next
pnpm add babel-plugin-convert-to-i18next
yarn add babel-plugin-convert-to-i18next
bun add babel-plugin-convert-to-i18next
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-04-01 |
| First published | 2019-04-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Younes Benaomar |
| Maintainers | interactive-object |
| Keywords | babel, plugin, json, po, yml, gettext, i18n, i18next |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-convert-to-i18next
- Repository: https://github.com/InteractiveObject/babel-plugin-convert-to-i18next
- npm.io page: https://npm.io/package/babel-plugin-convert-to-i18next

## Dependencies (2)

- [decache](https://npm.io/package/decache.md) ^4.1.0
- [po2json](https://npm.io/package/po2json.md) ^1.0.0-alpha

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-04-01
- 1.0.1 — 2019-04-01

## README

# babel-plugin-convert-to-i18next

Convert po file (gettext) formats to i18next json on import. 
Support version node 6 and Babel 7. (Tested version)

## Example

**In**

```js
import fr from './translation.po'
const fr = require('./translation.po')
```

**Out**

```js
const fr = <JSON>
```

## Installation

```sh
$ npm install babel-plugin-convert-to-i18next
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["convert-to-i18next"]
}
```

### Via CLI

```sh
$ babel --plugins convert-to-i18next script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["convert-to-i18next"]
});
```

---
_Source: https://npm.io/package/babel-plugin-convert-to-i18next · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
