-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Add API for glossary #4118
Comments
You are uploading a translation, not a glossary. There is currently no API for glossary. |
This issue has been added to the backlog. It is not scheduled on our roadmap, but it eventually might be implemented. In case you desperately need this feature, please consider helping or funding the development. |
Desired API:
Access control:
|
The source_language attribute should land soon via #4359, it should support editing in a same way as on project - accept both language code or object from request. |
* Adds glossary API * Fixes perm check for glossary API * Fixes permission for glossary term in API * Use to_internal_value for source languages in glossary Fixes #4118 Co-authored-by: Michal Čihař <michal@cihar.com>
Thank you for your report, the issue you have reported has just been fixed.
|
Describe the bug
When uploading a json file containing translations to the source language with endpoint:
POST /api/translations/(string:project)/(string:component)/(string:language)/file/
New fields saved in json file do not show as additianal translation just like when passing the same file with import glossary method in web client ui.
To Reproduce
Steps to reproduce the behavior:
curl -X POST
-F file=@$filepath
-F overwrite=true
-H "Authorization: Token $API_KEY"
"https://hostname.com/api/translations/$PROJECT/$TRANSLATIONS_COMPONENT/$LANG/file/"
If json file added manually glossary is updated with new fields in json file.
How to extend glossary through API
Expected behavior
Uploading a translation json file with additional keys extends the glossary.
The text was updated successfully, but these errors were encountered: