parcel-transformer-po
v1.0.0
Published
A Parcel v2 transformer for .po files
Downloads
4
Maintainers
Readme
parcel-transformer-po
Parcel v2 transformer that allows importing .po
files as compiled JSON.
Usage
Install the transformer
npm install parcel-transformer-po
Add the transformer to Parcel config
{
"transformers": {
"*.po": ["parcel-transformer-po"]
}
}
Import .po
files from JavaScript code
import uk from './locales/uk.po';
import { addLocale } from 'ttag';
addLocale('uk', uk);