Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sidp/parcel-plugin-po
- Owner: sidp
- License: mit
- Created: 2018-12-04T14:49:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:00:00.000Z (almost 2 years ago)
- Last Synced: 2024-12-05T17:44:22.331Z (23 days ago)
- Topics: parcel, parcel-bundler, parcel-plugin, portable-object
- Language: JavaScript
- Size: 864 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:']);
```