Skip to content

Commit

Permalink
doc(format-po-gettext): add warnings to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Mar 21, 2023
1 parent 0b29f0f commit 284fe4c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion packages/format-po-gettext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@
# @lingui/format-po-gettext

> Read and write message catalogs in Gettext PO format with gettext-style plurals
>
> Converts ICU Plural expressions into native gettext plurals
`@lingui/format-po-gettext` is part of [LinguiJS][linguijs]. See the
[documentation][documentation] for all information, tutorials and examples.

> **Warning**
> This formatter is made for compatibility with TMS, which does not support ICU expressions in PO files.
>
> It does not support all features of LinguiJS and should be carefully considered over other formats.
>
> Not supported features (native gettext doesn't support this):
> - SelectOrdinal
> - Select
> - Nested ICU Expressions
> - Signed digits and fractions (-5, and 0.15) in plurals
## Catalog example

```po
Expand Down Expand Up @@ -56,7 +69,12 @@ export type PoGettextFormatterOptions = {
* @default true
*/
lineNumbers?: boolean


/**
* Disable warning about unsupported `Select` feature encountered in catalogs
*
* @default false
*/
disableSelectWarning?: boolean
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/format-po-gettext/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lingui/format-po-gettext",
"version": "4.0.0-next.2",
"description": "Gettext PO format for Lingui Catalogs",
"description": "Gettext PO format with gettext-style plurals for Lingui Catalogs",
"main": "./dist/po-gettext.cjs",
"module": "./dist/po-gettext.mjs",
"types": "./dist/po-gettext.d.ts",
Expand Down

0 comments on commit 284fe4c

Please sign in to comment.