Replies: 1 comment 3 replies
-
For monolingual formats (see https://docs.weblate.org/en/latest/formats.html#bilingual-and-monolingual-formats), you only add strings in the source language. The string is then available for translation in all languages. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am in the process of creating a script to insert English strings into Weblate alongside their translations using the Weblate REST API. Is this even possible?
Adding an English string with its key works using the following endpoint:
POST /api/translations/(string: project)/(string: component)/(string: language)/units/
However, it seems impossible to add strings using any language other than English (the source language) executing above endpoint...
I also tried the following endpoint:
PUT /api/units/(int: id)/
Unfortunately, I received the error: "Add the string to the source language instead."
So, my question is: How can I update a non-source language text using the REST API?
Beta Was this translation helpful? Give feedback.
All reactions