From f7b85748f24b20811d2f3a797da48cff58dd531e Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 19 Feb 2026 13:54:18 +0200 Subject: [PATCH] add patch --- patches/@lingui+cli+5.9.1.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/@lingui+cli+5.9.1.patch diff --git a/patches/@lingui+cli+5.9.1.patch b/patches/@lingui+cli+5.9.1.patch new file mode 100644 index 0000000000..c70fcce4a3 --- /dev/null +++ b/patches/@lingui+cli+5.9.1.patch @@ -0,0 +1,20 @@ +diff --git a/node_modules/@lingui/cli/dist/api/catalog.js b/node_modules/@lingui/cli/dist/api/catalog.js +index 191b281..4af924e 100644 +--- a/node_modules/@lingui/cli/dist/api/catalog.js ++++ b/node_modules/@lingui/cli/dist/api/catalog.js +@@ -234,10 +234,12 @@ async function writeCompiled(path, locale, compiledCatalog, namespace) { + await (0, utils_1.writeFile)(filename, compiledCatalog); + return filename; + } ++ ++// hardcoded en-US locale to have consistent sorting ++// @see https://github.com/lingui/js-lingui/pull/1808 ++const collator = new Intl.Collator("en-US"); ++ + const orderByMessage = (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"); + const aMsg = a.entry.message || ""; + const bMsg = b.entry.message || ""; + const aCtxt = a.entry.context || "";