) of Weblate is to group commits from the same author into one commit if possible.
The commit related scripts always get one parameter with full path to the translation file which has been changed.
The script is executed with the current directory set to the root of the VCS repository for given component.
For example with gulp you can do it using following code: In many cases you might want to automatically do some changes to the translation before it is committed to the repository.
The pre commit script is exactly the place to achieve this.
This is the safest way in case you also access the underlying repository by other means.
In case you don’t need this, you can enable rebasing of changes on upstream, which will produce history with fewer merge commits.
If you are using SSH to push, you will need to have a key without a passphrase (or use ssh-agent for Django) and the remote server needs to be verified by you via the admin interface first, otherwise pushing will fail.
The push options differ based on the By default, Weblate merges the upstream repository into its own.
The complete process can be described in following steps: Each project can have a push URL configured and in that case Weblate offers a button in the web interface to push changes to the remote repository.