Table of Contents
However, we recommend installing the snippet before doing anything else to take advantage of the Transifex Live sidebar, which runs directly on your site.
Adding a website
Create a web project if you don’t have one yet.
Select your project from the project navigation in the Dashboard.
Click the Add website button in the right panel.
Type your website’s URL into the URL field and click Create resource.
Getting the snippet
Each site you translate with Transifex Live (i.e. each resource) has a unique snippet associated with that site’s URL.
Now that you have a web project and resource, you can get the snippet:
Navigate to the Dashboard and select the project with the resource you want to get the snippet for.
Click on Resources.
From the list of resources, click on the one you want to get the snippet for.
In the header, click Settings.
Copy the snippet from the popup.
Installing the snippet
After you have copied the snippet, paste it before the
</head> tag of each page you want to translate. And that’s it. You’ll now be able to trigger the Transifex Live sidebar on your site and approve strings for translation.
If the snippet cannot be placed in the
</head> tag, then you should set the
manual_init parameter to a boolean true value (more info here) and call
Transifex.live.init() when you´re ready for the snippet to run.
Using Transifex Live on a staging server
This lets you approve and translate content from the staging server before taking them live on your production server – without needing to do any duplicate work.
Simply return to the Settings popup you copied the snippet from, enter your staging domain, and hit Save Settings.