@lingui/cli 5.5.0 → 5.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,8 +7,9 @@ function getFallbackListForLocale(fallbackLocales, locale) {
|
|
|
7
7
|
const mapping = fallbackLocales === null || fallbackLocales === void 0 ? void 0 : fallbackLocales[locale];
|
|
8
8
|
Array.isArray(mapping) ? fL.push(...mapping) : fL.push(mapping);
|
|
9
9
|
}
|
|
10
|
-
if ((fallbackLocales === null || fallbackLocales === void 0 ? void 0 : fallbackLocales.default)
|
|
11
|
-
|
|
10
|
+
if (typeof (fallbackLocales === null || fallbackLocales === void 0 ? void 0 : fallbackLocales.default) === "string" &&
|
|
11
|
+
locale !== (fallbackLocales === null || fallbackLocales === void 0 ? void 0 : fallbackLocales.default)) {
|
|
12
|
+
fL.push(fallbackLocales.default);
|
|
12
13
|
}
|
|
13
14
|
return fL;
|
|
14
15
|
}
|
package/dist/api/catalog.js
CHANGED
|
@@ -248,7 +248,9 @@ function orderByMessage(messages) {
|
|
|
248
248
|
.sort((a, b) => {
|
|
249
249
|
const aMsg = messages[a].message || "";
|
|
250
250
|
const bMsg = messages[b].message || "";
|
|
251
|
-
|
|
251
|
+
const aCtxt = messages[a].context || "";
|
|
252
|
+
const bCtxt = messages[b].context || "";
|
|
253
|
+
return collator.compare(aMsg, bMsg) || collator.compare(aCtxt, bCtxt);
|
|
252
254
|
})
|
|
253
255
|
.reduce((acc, key) => {
|
|
254
256
|
;
|
package/dist/lingui-compile.js
CHANGED
package/dist/lingui-extract.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/cli",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
4
4
|
"description": "CLI for working wit message catalogs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@babel/parser": "^7.22.0",
|
|
63
63
|
"@babel/runtime": "^7.21.0",
|
|
64
64
|
"@babel/types": "^7.21.2",
|
|
65
|
-
"@lingui/babel-plugin-extract-messages": "5.5.
|
|
66
|
-
"@lingui/babel-plugin-lingui-macro": "5.5.
|
|
67
|
-
"@lingui/conf": "5.5.
|
|
68
|
-
"@lingui/core": "5.5.
|
|
69
|
-
"@lingui/format-po": "5.5.
|
|
70
|
-
"@lingui/message-utils": "5.5.
|
|
65
|
+
"@lingui/babel-plugin-extract-messages": "5.5.2",
|
|
66
|
+
"@lingui/babel-plugin-lingui-macro": "5.5.2",
|
|
67
|
+
"@lingui/conf": "5.5.2",
|
|
68
|
+
"@lingui/core": "5.5.2",
|
|
69
|
+
"@lingui/format-po": "5.5.2",
|
|
70
|
+
"@lingui/message-utils": "5.5.2",
|
|
71
71
|
"chokidar": "3.5.1",
|
|
72
72
|
"cli-table": "^0.3.11",
|
|
73
73
|
"commander": "^10.0.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"mockdate": "^3.0.5",
|
|
96
96
|
"ts-node": "^10.9.2"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "197bcd9ab7eca588ba9436a2d20996f92deb7547"
|
|
99
99
|
}
|