@lingui/format-po-gettext
Version:
Gettext PO format with gettext-style plurals for Lingui Catalogs
25 lines (22 loc) • 785 B
TypeScript
import { CatalogFormatter } from '@lingui/conf';
import { PoFormatterOptions } from '@lingui/format-po';
type PoGettextFormatterOptions = PoFormatterOptions & {
/**
* Disable warning about unsupported `Select` feature encountered in catalogs
*
* @default false
*/
disableSelectWarning?: boolean;
/**
* Overrides the default prefix for icu and plural comments in the final PO catalog.
*
* @default "js-lingui:"
*/
customICUPrefix?: string;
/**
* Combine plural entries that have the same content but different variables into a single PO entry
*/
mergePlurals?: boolean;
};
declare function formatter(options?: PoGettextFormatterOptions): CatalogFormatter;
export { type PoGettextFormatterOptions, formatter };