@lingui/format-po
Read and write message catalogs in Gettext PO format with ICU plurals
@lingui/format-po
is part of LinguiJS. See the
documentation for all information, tutorials and examples.
Catalog example
#, Comment for translators
#: src/App.js:4, src/Component.js:2
msgid "MessageID"
msgstr "Translated Message"
Installation
npm install --save-dev @lingui/format-po
Usage
import {formatter} from "@lingui/format-po"
export default {
[...]
format: formatter({lineNumbers: false}),
}
Possible options:
export type PoFormatterOptions = {
origins?: boolean
lineNumbers?: boolean
printLinguiId?: boolean
explicitIdAsDefault?: boolean
}
License
This package is licensed under MIT license.