Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sidp/parcel-plugin-po

Import PO files in Parcel.
https://github.com/sidp/parcel-plugin-po

parcel parcel-bundler parcel-plugin portable-object

Last synced: 6 days ago
JSON representation

Import PO files in Parcel.

Awesome Lists containing this project

README

        

# Parcel plugin

This is a plugin for [Parcel](https://github.com/parcel-bundler/parcel) that allows importing PO files. It's a tiny wrapper around [po2json](https://github.com/mikeedwards/po2json).

## Installation

```sh
npm install @sidp/parcel-plugin-po
```

## Usage

example.po:
```
msgid "Pages:"
msgstr "Sidor:"
```

```js
import strings from './example.po';

console.log(strings['Pages:']);
```