Skip to content

Commit d447e9f

Browse files
committed
add patch
1 parent bb6c850 commit d447e9f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

patches/@lingui+cli+5.9.1.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/node_modules/@lingui/cli/dist/api/catalog.js b/node_modules/@lingui/cli/dist/api/catalog.js
2+
index 191b281..4af924e 100644
3+
--- a/node_modules/@lingui/cli/dist/api/catalog.js
4+
+++ b/node_modules/@lingui/cli/dist/api/catalog.js
5+
@@ -234,10 +234,12 @@ async function writeCompiled(path, locale, compiledCatalog, namespace) {
6+
await (0, utils_1.writeFile)(filename, compiledCatalog);
7+
return filename;
8+
}
9+
+
10+
+// hardcoded en-US locale to have consistent sorting
11+
+// @see https://github.com/lingui/js-lingui/pull/1808
12+
+const collator = new Intl.Collator("en-US");
13+
+
14+
const orderByMessage = (a, b) => {
15+
- // hardcoded en-US locale to have consistent sorting
16+
- // @see https://github.com/lingui/js-lingui/pull/1808
17+
- const collator = new Intl.Collator("en-US");
18+
const aMsg = a.entry.message || "";
19+
const bMsg = b.entry.message || "";
20+
const aCtxt = a.entry.context || "";

0 commit comments

Comments
 (0)