Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
smhg committed Jan 8, 2023
1 parent bb76ef9 commit 2d92065
Show file tree
Hide file tree
Showing 3 changed files with 1,043 additions and 3,209 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function xgettext (input, options, cb) {
const msgctxt = strings[key].msgctxt || '';
const context = translations[msgctxt] || (translations[msgctxt] = {});
const msgid = strings[key].msgid || key;
context[msgid] = context[msgid] || { msgid: msgid, comments: {} };
context[msgid] = context[msgid] || { msgid, comments: {} };

if (msgctxt) {
context[msgid].msgctxt = strings[key].msgctxt;
Expand Down Expand Up @@ -160,7 +160,7 @@ function xgettext (input, options, cb) {
headers: {
'content-type': `text/plain; charset=${options['from-code']}`
},
translations: translations
translations
}, { sort: options['sort-output'] });

if (writeToStdout) {
Expand Down
Loading

0 comments on commit 2d92065

Please sign in to comment.