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: 2 months 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:00:00.000Z (over 2 years ago)
- Last Synced: 2025-03-18T06:08:43.321Z (3 months ago)
- Topics: parcel, parcel-bundler, parcel-plugin, portable-object
- Language: JavaScript
- Size: 864 KB
- Stars: 1
- Watchers: 1
- 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:']);
```