Transifex

  • Documentation
  • Zapier
  • Zapier - Slack

Zapier - Slack

Note

The Zapier integration is currently available in private beta. If you're interested in trying it out, please contact us. Additionally, please note that Zapier is a freemium service.

Zapier is a tool that lets you connect different apps together and set up “Zaps” to automate tasks. These Zaps, or workflows, are created by connecting triggers (events) in one app with actions (tasks performed) in another. The Transifex app in Zapier supports the following triggers and actions:

  • Triggers: Translation completed, Review completed, Fillup completed, Any of the above (These are the same events supported by our webhooks)
  • Actions: Upload file to Transifex, Download file from Transifex

With these, you can set up workflows (Zaps) like these:

  • Get notified in Slack each time translations for a language are complete
  • Push new source files from Dropbox to Transifex
  • Download translated files to Dropbox when translations are complete

Below, we’ll guide you through the process of setting up the Slack & Transifex Zaps. However, the beauty of Zapier is that it’s flexible. You can use the supported triggers and actions to create similar Zaps connected to other services (e.g. HipChat or Box) or create something totally new.

Get Slack notifications about finished translations

For this Zap, we’ll first set up a trigger based on an event in Transifex (translations are completed). Then we’ll set up an action to take place in Slack (message a channel) whenever that event occurs. You can follow these steps to get notified about other events, or send notifications through another service.

Setting up the Transifex trigger

  • Sign up for a Zapier account if you don't already have one, then log into the Zapier Dashboard and click the Make a Zap! button in the header.

  • You’ll be asked to choose a trigger app. Search for Transifex and select it from the drop down.

    zapier-choose-trigger-app.png#asset:3840

  • Select the event you want to use as a trigger. For this example, we’ll choose Translations completed. Once you've selected a trigger, hit Save + Continue.

  • Click on Connect a New Account to link Zapier to Transifex. In the popup window, put in a Transifex webhook secret. Remember the secret because you’ll need it later. You can also add in your API key if you plan on setting up a Zap for downloading files later. Hit Save + Continue.

  • Copy the target webhook URL. Then head to Transifex (preferably in a new tab), and go to the Settings for the project you want to set up this Zap for. In the submenu, click on Webhooks and then Add webhook.

  • Paste the URL you copied earlier into the URL field. Enter in the secret from earlier, and choose which event this webhook is for. The event you select should be the same as the trigger you selected in Step 2 above. Set the Webhook to Active, then click Save Changes

    zapier-webhook-setup.png#asset:3841

  • Once you’ve set up the webhook in Transifex, head back to Zapier and click Continue.

  • Click Fetch & Continue to make sure the webhook is working. Then hit Continue.

Setting up the Slack action and activating your Zap

Once you've set up the trigger, you can set up the action.

  • Choose an action app. In this case, we’ll search for and select Slack.

  • From the available actions, choose Send Channel Message and hit Save + Continue.

    zapier-choose-action.png#asset:3842

  • Click on Connect a New Account and authorize Slack. Once you’ve done this, hit Save + Continue.

  • Set up and customize the message you want to see in Slack by selecting the Channel the message should appear in, as well as putting in a message text. You can customize the message to say whatever you want, and include variables such as the project name by clicking on the Insert a Field icon on the right side of the text box.

    zapier-slack-message.png#asset:3843

    You can customize other options, such as the Bot name. When you're finished with the customizations, click Continue.

  • Click Create & Test to test the connection. If the test is successful, click Finish.

  • Give your Zap a name, then switch it on!