Below, we’ll guide you through setting up Dropbox and 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.
Sending new files from Dropbox to Transifex
Suppose you store spreadsheets and documents that you wish to translate on Dropbox. In that case, you can use Zapier to automatically upload new and updated files to Transifex while automatically sending completed translations back to Dropbox.
Please note that the procedure described here needs to be repeated for each directory in Dropbox or each project in Transifex. A single zap can be used to push multiple source files within the same Dropbox directory to Transifex.
We’ll first set up a trigger for this Zap based on an event in Dropbox (a new file is added). Then, we’ll set up an action (uploading the file to Transifex) to take place in Transifex whenever that event occurs. You can follow these steps to send files from other services to Transifex.
Setting up the Dropbox trigger (aka creating a new Zap)
On the “when this happens“ section, Choose App, search for Dropbox, and select it.
From the events list that appears, choose the second option, "New File In Folder," as seen below:
Click the "Continue" button to proceed.
Enter Your Dropbox Security Credentials.
Press the "Continue" button to proceed.
Set up the "trigger" in Dropbox to point to the source files you want to upload into Transifex.
Press the "Continue" button to proceed.
Test the "trigger" to ensure the criteria set is correct, then press the "Continue" button to proceed.
Setting up the Upload action and activating your Zap
Once you've set up the trigger, you can set up the action.
Search for "Transifex" and select it when prompted to do so, as seen below:
Choose the appropriate Transifex event ("Upload File") as seen below:
Click the "Continue" button to proceed.
Click the "Sign in to Transifex" button and enter your credentials:
On the page that appears, enter your API token. This is obligatory. To generate an API token, follow the instructions here.
Click "Yes, Continue" and then click the Continue button to proceed.
Define the relevant Transifex parameters:
Click on the "Continue" button to proceed, then test the action to confirm everything is working. Once everything is working, save the Zap and turn it on.
Troubleshooting:
Be patient. The zap can take up to an hour to trigger when uploading a new file to Dropbox.
If the file still hasn't been uploaded, please take a look at the following guide.
Wait 5 minutes before turning on the zap.
Sending Completed Translations From Transifex to Dropbox
For this Zap, we’ll first set up a trigger based on an event in Transifex (translations are completed). Then, we’ll set up two actions. One is to download the translation files from Transifex, and one is to upload those files to Dropbox. You can follow these steps to get notified about other events or send notifications through another service.
Setting up the Trigger and Download action
Before we can upload a file to Dropbox, we need to download it from Transifex first.
Here's how to set this up:
Create a new Zap.
On the “when something happens“ section, Choose App, search for "Transifex," and select it when prompted to do so, as seen below:
Select "Localization Activity Completed:
Click the "Continue" button to proceed.
Select Your Transifex security credentials:
Click the "Continue" button to proceed.
Set up the "trigger" in Dropbox for when you want translations synced from Transifex (you can choose more than one trigger).
Press the "Continue" button to proceed.
Test the "trigger" to ensure the criteria set is correct, then press the "Continue" button to proceed.
Select "Download file" as the Action Event.
Press the "Continue" button to proceed.
Choose the account created/used in step 4 above. Press the "Continue" button to proceed.
In the "Set up action" section, populate the dropdowns as seen below:
Press the "Continue" button to proceed.
As an option, test the configuration to see if a file is downloaded. Remember that this test will not return anything if you don't have any languages in your project that are 100% translated.
Proceed to the next step.
Setting up the Upload action
Add a new action for Dropbox. Find the "Dropbox" app and select it.
Select the "Upload file" event:
Press the "Continue" button to proceed.
Choose the appropriate Dropbox account as seen below:
Press the "Continue" button to proceed.Customize the "Upload File" (i.e., translation file) as seen below and then press the "Continue" button to proceed:
Note that the "Filename" is customizable with a mix of text and predefined variables.
Please always use the predefined variables if you wish to use this zap for all the resources in a given project. The "Filename of the file:" parameter uses the resource slug of the source file.
If you are not satisfied with the resource slug, you can change it in Transifex by following the instructions indicated here (Note: these instructions are for changing a category, but a slug is changed from the same popup).As an option, test the zap. Make sure to turn on the zap when finished. At this point, there should be three steps/actions to your zap.
Additional Reading
💡Tip
Looking for more help? Get support from our Transifex Community Forum!
Find answers or post to get help from Transifex Support and our Community.