@lingui/format-po-gettext 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-gettext.mjs +3 -1
  2. package/package.json +11 -14
@@ -3414,7 +3414,9 @@ function mergeDuplicatePluralEntries(items, options) {
3414
3414
  }),
3415
3415
  ctxPrefix
3416
3416
  );
3417
- mergedItem.references = duplicateItems.flatMap((item) => item.references);
3417
+ mergedItem.references = [
3418
+ ...new Set(duplicateItems.flatMap((item) => item.references))
3419
+ ];
3418
3420
  mergedItems.push(mergedItem);
3419
3421
  }
3420
3422
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lingui/format-po-gettext",
3
- "version": "6.0.0-next.3",
4
- "description": "Gettext PO format with gettext-style plurals for Lingui Catalogs",
3
+ "version": "6.0.0",
4
+ "description": "Gettext PO formatter for Lingui message catalogs using gettext-style plural rules",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "license": "MIT",
@@ -9,18 +9,15 @@
9
9
  ".": "./dist/po-gettext.mjs"
10
10
  },
11
11
  "keywords": [
12
- "i18n",
13
- "lingui-formatter",
14
- "lingui-format",
12
+ "lingui",
15
13
  "gettext",
16
14
  "po",
17
15
  "pot",
18
- "internationalization",
19
- "i10n",
20
- "localization",
21
- "i9n",
16
+ "plural-rules",
17
+ "catalog-format",
18
+ "i18n",
22
19
  "translation",
23
- "multilingual"
20
+ "lingui-format"
24
21
  ],
25
22
  "scripts": {
26
23
  "build": "unbuild",
@@ -44,9 +41,9 @@
44
41
  "dist/"
45
42
  ],
46
43
  "dependencies": {
47
- "@lingui/conf": "6.0.0-next.3",
48
- "@lingui/format-po": "6.0.0-next.3",
49
- "@lingui/message-utils": "6.0.0-next.3",
44
+ "@lingui/conf": "6.0.0",
45
+ "@lingui/format-po": "6.0.0",
46
+ "@lingui/message-utils": "6.0.0",
50
47
  "@messageformat/parser": "^5.0.0",
51
48
  "pofile": "^1.1.4"
52
49
  },
@@ -58,5 +55,5 @@
58
55
  "unbuild": {
59
56
  "declaration": "node16"
60
57
  },
61
- "gitHead": "ebcb6dc8e8d327ae5775cadee931942ef309480f"
58
+ "gitHead": "a194ab486dd979c42b39d90c80e5c3e2283bf8c7"
62
59
  }