Merge branch 'remove-i18n-comments' into 'master'

Remove comments before pushing translation source

See merge request openlp/web-remote!112
This commit is contained in:
Raoul Snyman 2024-04-27 17:00:08 +00:00
commit 40c4d9e363

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,