How to Set Up a Webhook with TranslationsPress to Automatically Update Your Translations
Keep Your Translations Up-to-Date in TranslationsPress
With TranslationsPress, keep your translations up to date by setting up webhooks for your version control system (VCS). Every time you push changes to your repository, your translations will be automatically updated.
Currently, TranslationsPress supports the following platforms:
• GitHub
• GitLab
Why Set Up a Webhook with TranslationsPress?
Setting up a webhook automates the process of updating translations, streamlining your workflow, and ensuring your translations reflect real-time changes in your code.
Guide: Setting Up a Webhook for GitHub
1. Access your GitHub repository settings:
Go to Settings > Webhooks in your repository. (You might need to enter your password.)
2. Add a new webhook:
Click Add webhook.
3. Configure the following details:
• Payload URL:
https://translationspress.com/wp-json/t15s/v1/incoming-webhook
• Content type: Select application/json.
• Secret key: Create a secret key and save it (you’ll need it later).
4. Choose the events to track:
In the “Which events would you like to trigger this webhook?” section, select Just the push event.
5. Finalize the setup:
Copy the secret key created in Step 3 and add it to your Team settings in TranslationsPress.
Guide: Setting Up a Webhook for GitLab
1. Access your GitLab repository settings:
Go to Settings > Integrations.
• If you have a paid plan, use the Group WebHooks feature: navigate to your group, then go to Settings > Webhooks.
2. Add a webhook with the following settings:
• URL:
https://translationspress.com/wp-json/t15s/v1/incoming-webhook
• Secret Token: Create and save a secret token (you’ll need it later).
• Trigger: Select Push events.
3. Finalize the setup:
Copy the Secret Token created in Step 2 and add it to your Team settings in TranslationsPress.
Benefits of Automation with TranslationsPress
• Save Time: No more manual synchronization of translations after every code change.
• Real-Time Updates: Your translations instantly reflect changes in your repository.
• Ease of Use: Compatible with major Git platforms like GitHub and GitLab.
For more information or assistance, visit our support page.