@lingui/format-po-gettext 4.2.0 → 4.3.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.
@@ -30,7 +30,7 @@ const CTX_PREFIX = "js-lingui:";
30
30
  function serializePlurals(item, message, id, isGeneratedId, options) {
31
31
  const icuMessage = message.message;
32
32
  if (!icuMessage) {
33
- return;
33
+ return item;
34
34
  }
35
35
  const _simplifiedMessage = icuMessage.replace(LINE_ENDINGS, " ");
36
36
  if (ICU_PLURAL_REGEX.test(_simplifiedMessage)) {
@@ -28,7 +28,7 @@ const CTX_PREFIX = "js-lingui:";
28
28
  function serializePlurals(item, message, id, isGeneratedId, options) {
29
29
  const icuMessage = message.message;
30
30
  if (!icuMessage) {
31
- return;
31
+ return item;
32
32
  }
33
33
  const _simplifiedMessage = icuMessage.replace(LINE_ENDINGS, " ");
34
34
  if (ICU_PLURAL_REGEX.test(_simplifiedMessage)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/format-po-gettext",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Gettext PO format with gettext-style plurals for Lingui Catalogs",
5
5
  "main": "./dist/po-gettext.cjs",
6
6
  "module": "./dist/po-gettext.mjs",
@@ -41,9 +41,9 @@
41
41
  "dist/"
42
42
  ],
43
43
  "dependencies": {
44
- "@lingui/conf": "4.2.0",
45
- "@lingui/format-po": "4.2.0",
46
- "@lingui/message-utils": "4.2.0",
44
+ "@lingui/conf": "4.3.0",
45
+ "@lingui/format-po": "4.3.0",
46
+ "@lingui/message-utils": "4.3.0",
47
47
  "@messageformat/parser": "^5.0.0",
48
48
  "node-gettext": "^3.0.0",
49
49
  "plurals-cldr": "^2.0.1",
@@ -55,5 +55,5 @@
55
55
  "tsd": "^0.28.0",
56
56
  "unbuild": "^1.1.2"
57
57
  },
58
- "gitHead": "57aa5ce306558d0a9d29a14dd40ffa31e5d591bd"
58
+ "gitHead": "da6c52629e978c24ec83f2a6c22e4dfc910808b4"
59
59
  }