Skip to content

Commit

Permalink
change to use function
Browse files Browse the repository at this point in the history
  • Loading branch information
garikkh committed Oct 25, 2024
1 parent ce9040c commit b029817
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/format-po-gettext/src/po-gettext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ import type { CatalogFormatter, CatalogType, MessageType } from "@lingui/conf"
import { generateMessageId } from "@lingui/message-utils/generateMessageId"
import { formatter as poFormatter } from "@lingui/format-po"
import type { PoFormatterOptions } from "@lingui/format-po"
import cldrSamples from "./plural_samples"
import { getCldrPluralSamples } from "./plural_samples"

type POItem = InstanceType<typeof PO.Item>

export type PoGettextFormatterOptions = PoFormatterOptions & {
disableSelectWarning?: boolean
}

const cldrSamples = getCldrPluralSamples()

// Attempts to turn a single tokenized ICU plural case back into a string.
function stringifyICUCase(icuCase: SelectCase): string {
return icuCase.tokens
Expand Down

0 comments on commit b029817

Please sign in to comment.