mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-21 11:02:49 +00:00
Remove comments before pushing translation source
This commit is contained in:
parent
da749d7ec8
commit
4a25c28f29
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user