Skip to content

Commit

Permalink
fix wrong stash update
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumepotier committed Dec 19, 2023
1 parent 5378cb2 commit c5a587c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions bin/po2json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ fs.readFile(argv[2], function (err, buffer) {
console.log(key, jsonData[key]);

// Do not dump untranslated keys, they already are in the templates!
<<<<<<< Updated upstream
if ('' !== jsonData[key][1].length ? jsonData[key][1][0] : jsonData[key][1])
=======
if ('' !== (jsonData[key][1].length ? jsonData[key][1][0] : jsonData[key][1]))
>>>>>>> Stashed changes
json[key] = 2 === jsonData[key].length ? jsonData[key][1] : jsonData[key].slice(1);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gettext.js",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",
"scripts": {
"test": "karma start tests/karma.config.js && node tests/po2json.test.js",
Expand Down

0 comments on commit c5a587c

Please sign in to comment.