-
-
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
[RestAPI] How to add translation to already created key? #9073
Comments
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
I had the same problem today
I'm trying to add new unit translation via rest api but I receive status 403 and info can not add unit. I do POST /api/translations/(string: project)/(string: component)/(string: language)/units/ with my token. and body: { "key": "somekey", "value": ["some value"] } I can add translation unit via admin panel but when i try do this programatically i get response as described. |
- This moves the logic to single place instead of duplicating it in the template to get the verbose message. - The detailed message is now used in the API as well. Fixes WeblateOrg#9073
- This moves the logic to single place instead of duplicating it in the template to get the verbose message. - The detailed message is now used in the API as well. Fixes WeblateOrg#9073
- This moves the logic to single place instead of duplicating it in the template to get the verbose message. - The detailed message is now used in the API as well. Fixes #9073
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the issue
In documentation I find
/api/translations/(string:project)/(string:component)/(string:language)/units/
endpoit that create a new unit. For example withru
language code. Next I try to create translation to this key by using same endpoint but another language codekk
. But I got403 Forbidden
message:Question: How can I add transation to created unit via RestAPI.
I already tried
Steps to reproduce the behavior
/api/translations/(string:project)/(string:component)/(string:language)/units/
Expected behavior
To create translation for existing unit
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
PyPI module
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: