i18next-conv
Advanced tools
Comparing version 10.0.0 to 10.0.1
@@ -0,1 +1,5 @@ | ||
### 10.0.1 | ||
- Due to a refactoring in `gettext-parser`, it now expects translation tables to contain `msgstr` properties as arrays (strings are not allowed anymore). This patch arrifies this property and adds a regression test | ||
### 10.0.0 | ||
@@ -2,0 +6,0 @@ |
@@ -6,2 +6,4 @@ "use strict"; | ||
const arrify = require('arrify'); | ||
const plurals = require('./plurals'); | ||
@@ -114,3 +116,3 @@ | ||
msgid_plural: pArray.slice(1, pArray.length), | ||
msgstr: kv.translated_value, | ||
msgstr: arrify(kv.translated_value), | ||
comments: { | ||
@@ -155,3 +157,3 @@ reference: [kv.key] | ||
msgid: kv.value, | ||
msgstr: kv.translated_value, | ||
msgstr: arrify(kv.translated_value), | ||
comments: { | ||
@@ -170,3 +172,3 @@ reference: [kv.key] | ||
msgid: kv.key, | ||
msgstr: kv.value | ||
msgstr: arrify(kv.value) | ||
}; | ||
@@ -173,0 +175,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"private": false, | ||
@@ -25,2 +25,3 @@ "main": "lib", | ||
"dependencies": { | ||
"arrify": "^2.0.1", | ||
"chalk": "^4.0.0", | ||
@@ -27,0 +28,0 @@ "commander": "^5.1.0", |
44734
1239
6
+ Addedarrify@^2.0.1
+ Addedarrify@2.0.1(transitive)