From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/po2json/lib/parse.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node_modules/po2json/lib') 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 -- cgit v1.2.3