Few fixes to ftl-to-json and localize-ftl scripts (#3707)

* Omit msg-ref-only strings from Transifex JSON
* Fix msg-ref-only strings not included in translated .ftl files
* Update ftl-tx. Simplify localize-ftl script.
* Tweak FTL -> JSON conversion to produce a single file
This commit is contained in:
Tom Najdek 2024-06-18 12:34:17 +02:00 committed by GitHub
parent f8a8f694b4
commit b7244998a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 71 additions and 58 deletions

View file

@ -30,7 +30,7 @@ function onProgress(sourcefile, outfile, operation) {
if ('isError' in global && global.isError) {
return;
}
if (NODE_ENV == 'debug') {
if (NODE_ENV === 'debug' && outfile) {
console.log(`${colors.blue(`[${operation}]`)} ${sourcefile} -> ${outfile}`);
}
else {