@lingui/format-po 6.0.0-next.3 → 6.0.0

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.
Files changed (2) hide show
  1. package/dist/po.mjs +1 -1
  2. 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.3",
4
- "description": "Gettext PO format for Lingui Catalogs",
3
+ "version": "6.0.0",
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
- "i18n",
10
- "lingui-format",
11
- "lingui-formatter",
9
+ "lingui",
12
10
  "gettext",
13
11
  "po",
14
12
  "pot",
15
- "internationalization",
16
- "i10n",
17
- "localization",
18
- "i9n",
13
+ "catalog-format",
14
+ "i18n",
19
15
  "translation",
20
- "multilingual"
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.3",
49
- "@lingui/message-utils": "6.0.0-next.3",
45
+ "@lingui/conf": "6.0.0",
46
+ "@lingui/message-utils": "6.0.0",
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": "ebcb6dc8e8d327ae5775cadee931942ef309480f"
56
+ "gitHead": "a194ab486dd979c42b39d90c80e5c3e2283bf8c7"
60
57
  }