How to create a component with wlc #11992
-
I am struggling to understand how I can create component from a zip file for an existing project with wlc or using curl from a batch file. When I do it on the web page it asks me all sorts of questions that I have to fill in. I can't see how to automate that using wlc. Can someone show me an example? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I don't think this is supported in wlc command line interface, but the API endpoint can do that: https://docs.weblate.org/en/latest/api.html#post--api-projects-(string-project)-components- Just upload the file as |
Beta Was this translation helpful? Give feedback.
-
Is there a list of all the options for the upload? |
Beta Was this translation helpful? Give feedback.
-
I've moved onto to trying to create the component from the gitea repo. Making progress. I shall be needing to automate this though using curl or wlc. |
Beta Was this translation helpful? Give feedback.
-
Actually the Add Component Addon does the job for me, so no need for batch file to create the components. |
Beta Was this translation helpful? Give feedback.
I don't think this is supported in wlc command line interface, but the API endpoint can do that: https://docs.weblate.org/en/latest/api.html#post--api-projects-(string-project)-components-
Just upload the file as
zipfile
and pass any parameters you want to configure.