I am trying to implement Crowdin into an Angular project and am failing miserably.
I first installed crowdin-cli to do upload → pre-translation (DeepL) → download. It required separate scripts to work locally (development) and remotely (pipeline) and it required an image with java. But it worked.
We then decided to perform all translations and synchronisation within Crowdin.
The application now only has following crowdin.yml
- source: /**/i18n/*.json
Upload to crowdin should trigger a Crowdin Workflow that pre-translates the Dutch source file to target languages Dutch & English. In order to make Crowdin create both target languages I had to select another Source Language. Selecting Dutch would not create target language Dutch, selecting English would not create English. So I selected English (United Kingdom) to create both target files.
A change in translations files should trigger BitBucket Integration to create branch crowdin from master and offer a pull-request. The branch is created and the pull-request is offered, but instead of offering Dutch and English files, both target files are in Dutch. It seems that pre-translation by DeepL never happened.
Where everything worked when executed with crowdin-cli, nothing seems to work via Bitbucket Integration. I must be doing something wrong, but ignore where.
There are a couple of things I can think of to happen:
(1) Merging feature branch to master performs no upload to crowdin, therefore triggers no workflow, therefore no translations are executed and translations files are not created.
(2) Even when translations files exist they are not given to the pull request, instead the original source file is placed in both target folders (en/translations.json and nl/translations.json).
(3) A Path is incorrect so that crowdin sends no target files to Bitbucket.
I find that documentation for crowdin-cli was quite good, whereas documentation for crowdin-gui is lacking. I have tried many configuration settings and fail to make it work. I hope I have provided sufficient information.