mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 03:22:48 +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) {
|
if (verbose) {
|
||||||
console.log('Reading en.json...');
|
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...');
|
console.log('Uploading en.json...');
|
||||||
await transifexApi.ResourceStringsAsyncUpload.upload({
|
await transifexApi.ResourceStringsAsyncUpload.upload({
|
||||||
resource: resource,
|
resource: resource,
|
||||||
|
Loading…
Reference in New Issue
Block a user