-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Support creating local VCS components using API #4156
Comments
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. |
This allows to use the logic from the API as well. Issue #4156
I've just implemented basics start from scratch in d9bfab2 |
Thank you for your report, the issue you have reported has just been fixed.
|
Thank you! |
It's there a way to create a component from scratch through the API? Basically this is what I want to achieve through api:
I would appreciate an opinion from someone, if weblate can help me with that |
You need to start from something - either pass zipfile or docfile in the API. The files can be blank, but adding at strings at once will perform better than adding them one by one later. |
Is your feature request related to a problem? Please describe.
The component creation API right now supports only creating components from remote VCS. It should also support no remote VCS setup where initial file is either created by Weblate or provided by upload.
In other words, it should support following workflows supported in the UI:
Describe the solution you'd like
Extend https://docs.weblate.org/en/latest/api.html#post--api-projects-(string-project)-components- to support local vcs.
Describe alternatives you've considered
Right now, this is not supported over API, but I don't think it's a viable approach.
Additional context
The related code is currently placed in the view, but should be shared for the API, not sure if it makes sense to move it to the models.
For example, creating component from scratch si here:
weblate/weblate/trans/views/create.py
Lines 54 to 72 in 9399189
The text was updated successfully, but these errors were encountered: