Hello there,
We are currently using a single .csv on crowdin for translations and we would like to use them for multiple platforms with placeholder and plurals.
It looks like they are correctly detected by crowdin. In the settings for “import” we have activated the “Unify placeholders”.
Since we want to download the translations with the CLI, I created a bundle. The bundle has only the android exporter enabled. For the android exporter I have the following settings.
But when I download the xml the placeholder and plurals are not generated.
Same behavior applies if we export for iOS. We are now not really sure if this even works as we think it should.
@Viacheslav Thanks for the quick response!
We are currently a bit lost then on how to approach the problem we want to solve with Crowdin. The pipeline we try to create is at follows:
- UX creates strings inside Figma and exports them with the Crowdin Figma plugin. This will create the CSV source file.
- Translators translate the source file
- We can export the translation bundles (with placeholders and plurals) for Android, iOS, Web (JSON) as well as a server environment (JSON) that also returns some of the strings back to the frontend.
As far as we understood, the Android and iOS export require the sprintf notation. But for the Web and server environment it should be ICU strings. We thought that this was achievable with a single source file, but as you have responded, they seem to be mutually exculsive.
How can we accomplish then our desired goal of having a single source file from Figma for all exporters? (Preferably without writing a custom exporter)