Closed xet7 closed 1 year ago
:wave: I wasn't able to replicate with the test files from the repo. The issue comes from the type of download file you use: filtered XLIFF
You need to pick Download option,
As we upload a source xliff
the download option is going to give you the translations as a xliff
too.
It's because when you export to xliff the file, crowdin is going to remove some informations for all plurals and it creates a broken file we can't really process (as we won't be able to build the JSON from it with plurals attached to their context)
It's a known issue with crowdin, they can't handle well context and plurals when the source file is
xliff
:/
Edit: Added this how to to the Readme of the lib https://github.com/dhoko/xliff-to-JSON-ttag
Thanks! Now converting translation works!
Hi, How to convert translation XLIFF to JSON ? I get these errors with both with XLIFF and filtered XLIFF.
When I try to convert webapp.xliff to JSON using step 8 of this page:
https://github.com/wekan/wekan/wiki/ProtonMail
Using this command:
Error at Debian 11 using Python 3.9.2:
Error at Ubuntu 23.04 with Python 3.11.2: