Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to get all string translations #13186

Open
nijel opened this issue Dec 4, 2024 · 3 comments
Open

API to get all string translations #13186

nijel opened this issue Dec 4, 2024 · 3 comments
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.

Comments

@nijel
Copy link
Member

nijel commented Dec 4, 2024

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

@nijel nijel added the enhancement Adding or requesting a new feature. label Dec 4, 2024
@nijel nijel added hacktoberfest This is suitable for Hacktoberfest. Don’t try to spam. help wanted Extra attention is needed. good first issue Opportunity for newcoming contributors. labels Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.

You can learn about how to get started in our contributors documentation.

@Adarsh08X
Copy link

Adarsh08X commented Dec 10, 2024

Hi nijel, I am new to open source and would be happy to contribute.

@nijel
Copy link
Member Author

nijel commented Dec 11, 2024

You are welcome! If you need some guidance, don't hesitate to ask here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
Status: To do
Development

No branches or pull requests

2 participants