I’m using the .NET library to access the Crowdin API.
In my scenario I need to fetch the current approved translation of a specific string. I would like to not store the Crowdin id of the string, as we already have the identifier.
My current approach:
- API Call: List Strings, use filter to get the Crowdin ID for the string identifier
- For each language
- API Call: List Translation Approvals: With language code and ID from previous request
- API Call: List String Translations: Get actual translated string with translation id from previous request.
This is quite a lot of calls, for a rather simple scenario. I need one request to get the id and then for each language two request just to get the translation.
In an ideal world, I would like to make one API request which will return the source text and all approved translations, by using the identifier, which I used to create the source text.
Is there any possibility to do this (maybe by using CroQL?) or any other way to simplify this process?