Open nijel opened 5 days ago
This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.
In case you need this feature soon, please consider helping or push it by funding the development.
Describe the problem
Per-project automatic suggestion configuration is stored in a Project model:
https://github.com/WeblateOrg/weblate/blob/32462c2b5e18ba86b46253748b28e59ec8df509e/weblate/trans/models/project.py#L219
There is currently no way to configure this via the API.
Describe the solution you would like
Add
machinery_settings
field to the project API including validation of the settings.Describe alternatives you have considered
No response
Screenshots
No response
Additional context
The per-service validation is already implemented in https://github.com/WeblateOrg/weblate/blob/main/weblate/machinery/management/commands/install_machinery.py and the implementation should be shared, so it needs to be factored out from there (perhaps to the Project model) and used for both command line and API.