Skip to content

Commit

Permalink
fix gettext section
Browse files Browse the repository at this point in the history
  • Loading branch information
garikkh committed Oct 1, 2024
1 parent 7b49b4a commit 0f9e82e
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions website/docs/ref/catalog-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,40 @@ export default {
};
```

origins?: boolean;
### Configuration {#po-gettext-config}

The PO Gettext formatter accepts the following options:

```ts
export type PoGettextFormatterOptions = {
/**
* Print places where message is used
*
* @default true
*/
origins?: boolean

/**
* Print line numbers in origins
*
* @default true
*/
lineNumbers?: boolean;
lineNumbers?: boolean

/**
* Disable warning about unsupported `Select` feature encountered in catalogs
*
* @default false
*/
disableSelectWarning?: boolean;
};
disableSelectWarning?: boolean

/**
* Overrides the default prefix for icu and plural comments in the final PO catalog.
*
* @default "js-lingui:"
*/
customCtxPrefix?: string
}
```
### Examples {#po-gettext-examples}
Expand Down

0 comments on commit 0f9e82e

Please sign in to comment.