@lingui/format-po 6.0.0-next.3 → 6.0.0-next.4
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.
- package/dist/po.mjs +1 -1
- package/package.json +10 -13
package/dist/po.mjs
CHANGED
|
@@ -105,7 +105,7 @@ const serialize = (catalog, options, ctx) => {
|
|
|
105
105
|
item.comments = message.extra?.translatorComments || [];
|
|
106
106
|
if (options.origins !== false) {
|
|
107
107
|
if (message.origin && options.lineNumbers === false) {
|
|
108
|
-
item.references = message.origin.map(([path]) => path);
|
|
108
|
+
item.references = [...new Set(message.origin.map(([path]) => path))];
|
|
109
109
|
} else {
|
|
110
110
|
item.references = message.origin ? message.origin.map(joinOrigin) : [];
|
|
111
111
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/format-po",
|
|
3
|
-
"version": "6.0.0-next.
|
|
4
|
-
"description": "Gettext PO
|
|
3
|
+
"version": "6.0.0-next.4",
|
|
4
|
+
"description": "Gettext PO formatter for Lingui message catalogs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
9
|
-
"
|
|
10
|
-
"lingui-format",
|
|
11
|
-
"lingui-formatter",
|
|
9
|
+
"lingui",
|
|
12
10
|
"gettext",
|
|
13
11
|
"po",
|
|
14
12
|
"pot",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"localization",
|
|
18
|
-
"i9n",
|
|
13
|
+
"catalog-format",
|
|
14
|
+
"i18n",
|
|
19
15
|
"translation",
|
|
20
|
-
"
|
|
16
|
+
"localization",
|
|
17
|
+
"lingui-format"
|
|
21
18
|
],
|
|
22
19
|
"exports": {
|
|
23
20
|
".": "./dist/po.mjs"
|
|
@@ -45,8 +42,8 @@
|
|
|
45
42
|
"dist/"
|
|
46
43
|
],
|
|
47
44
|
"dependencies": {
|
|
48
|
-
"@lingui/conf": "6.0.0-next.
|
|
49
|
-
"@lingui/message-utils": "6.0.0-next.
|
|
45
|
+
"@lingui/conf": "6.0.0-next.4",
|
|
46
|
+
"@lingui/message-utils": "6.0.0-next.4",
|
|
50
47
|
"pofile": "^1.1.4"
|
|
51
48
|
},
|
|
52
49
|
"devDependencies": {
|
|
@@ -56,5 +53,5 @@
|
|
|
56
53
|
"unbuild": {
|
|
57
54
|
"declaration": "node16"
|
|
58
55
|
},
|
|
59
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "e8ab674fdc9d6373c8a20bb6061ac836661ea22e"
|
|
60
57
|
}
|