API to get all string translations #13186
Labels
enhancement
Adding or requesting a new feature.
good first issue
Opportunity for newcoming contributors.
hacktoberfest
This is suitable for Hacktoberfest. Don’t try to spam.
help wanted
Extra attention is needed.
Describe the problem
There is no way to get all the translated units for a source unit in the API.
Describe the solution you would like
Introduce an additional endpoint for unit (tentatively
/api/units/(int: id)/translations/
) that would work for source units only and would include links to all the translation units.Describe alternatives you have considered
I was also considering including this directly in the unit serializer, but I think this would ruin the unit listing performance, or we would have to use a different serializer for listing and details. That is certainly a viable approach as well.
Screenshots
No response
Additional context
#13146
The text was updated successfully, but these errors were encountered: