From a203aa784c319376fadb4d4971d4b2824981f571 Mon Sep 17 00:00:00 2001 From: Timofei <1586852+timofei-iatsenko@users.noreply.github.com> Date: Sat, 21 Feb 2026 11:43:16 +0100 Subject: [PATCH] fix: extract performance caused by catalog sort --- packages/cli/src/api/catalog.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/api/catalog.ts b/packages/cli/src/api/catalog.ts index cdf8f836d..35e04c2ea 100644 --- a/packages/cli/src/api/catalog.ts +++ b/packages/cli/src/api/catalog.ts @@ -373,11 +373,11 @@ export async function writeCompiled( return filename } -export const orderByMessage: OrderByFn = (a, b) => { - // hardcoded en-US locale to have consistent sorting - // @see https://github.com/lingui/js-lingui/pull/1808 - const collator = new Intl.Collator("en-US") +// hardcoded en-US locale to have consistent sorting +// @see https://github.com/lingui/js-lingui/pull/1808 +const collator = new Intl.Collator("en-US") +export const orderByMessage: OrderByFn = (a, b) => { const aMsg = a.entry.message || "" const bMsg = b.entry.message || "" const aCtxt = a.entry.context || ""