diff --git a/scripts/tx.js b/scripts/tx.js index 2c6e6ed..5df3386 100644 --- a/scripts/tx.js +++ b/scripts/tx.js @@ -70,7 +70,10 @@ async function pushSource(resource, verbose) { if (verbose) { console.log('Reading en.json...'); } - const content = fs.readFileSync(filename); + let content = fs.readFileSync(filename); + let json = JSON.parse(content); + delete json._COMMENT; + content = JSON.stringify(json); console.log('Uploading en.json...'); await transifexApi.ResourceStringsAsyncUpload.upload({ resource: resource,