From b029817afda9ac5a0d50d95ffa47a55708e9b4eb Mon Sep 17 00:00:00 2001 From: Garik Khachatryan Date: Fri, 25 Oct 2024 13:01:37 -0700 Subject: [PATCH] change to use function --- packages/format-po-gettext/src/po-gettext.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/format-po-gettext/src/po-gettext.ts b/packages/format-po-gettext/src/po-gettext.ts index f649d1e87..c5ae25bf0 100644 --- a/packages/format-po-gettext/src/po-gettext.ts +++ b/packages/format-po-gettext/src/po-gettext.ts @@ -8,7 +8,7 @@ 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 @@ -16,6 +16,8 @@ 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