Remove comments before pushing translation source

This commit is contained in:
Raoul Snyman 2024-04-27 09:55:12 -07:00
parent da749d7ec8
commit 4a25c28f29

View File

@ -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,