aboutsummaryrefslogtreecommitdiff
path: root/node_modules/po2json/lib/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/po2json/lib/parse.js')
-rw-r--r--node_modules/po2json/lib/parse.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/node_modules/po2json/lib/parse.js b/node_modules/po2json/lib/parse.js
index 06139b2b5..5cb1f6ad7 100644
--- a/node_modules/po2json/lib/parse.js
+++ b/node_modules/po2json/lib/parse.js
@@ -42,6 +42,8 @@ module.exports = function(buffer, options) {
if (!fuzzy || options.fuzzy) {
if (options.format === 'mf') {
result[translationKey] = t.msgstr[0];
+ } else if (options.format === 'jed1.x') {
+ result[translationKey] = [ t.msgid_plural ? t.msgid_plural : null ].concat(t.msgstr);
} else {
if(pluralForms == 'nplurals=1; plural=0;') {
msgstr = t.msgid_plural ? [t.msgstr] : t.msgstr