commit 3df6d79c2a4e425eaf48d68e18e63d73b590f135 parent a4488a32aeac130132e09a01b76f600554e554e3 Author: Sebastian <sebasjm@gmail.com> Date: Fri, 11 Jul 2025 14:43:14 -0300 more info in the readme Diffstat:
| M | packages/fix-weblate-format/README.md | | | 20 | ++++++++++++++++++-- |
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/packages/fix-weblate-format/README.md b/packages/fix-weblate-format/README.md @@ -12,16 +12,32 @@ The script "fix-weblate-format.js" takes the file, reads the "trans-unit" xml el Requirements ----- -nodejs -pnpm +install nodejs (https://nodejs.org/) +install pnpm (https://pnpm.io/installation) Building -------- +Install dependecies + $ pnpm install Example of fixing French XLIFF ------------------------------ +The script only take the XLIFF file exported by Weblate as first parameter and the lang of the language source as a second parameter. + +For example: + $ node fix-weblate-format.js gnu-taler-taler-wallet-ios-fr.xlf fr > converted-fr-without-untranslated.xliff +For help + +$ node fix-weblate-format.js + +USAGE: node fix-weblate-format.js <file> <lang> + +file: location of the XLIFF file exported by weblate +lang: 2 char lang code like 'es' 'en' 'fr' of the XLIFF file + +