Translating WordPress sites with Get Localization

This document is intended for a technical person and it guides through the installation of Get Localization Translate.js translation solution on a WordPress site.

Prerequisites

You may have received a tag code from your Get Localization project manager and in this case, it's not required to start a new Workspace or get an API key as they are already created for you. You can safely proceed to installation instructions.

Installing the Get Localization Translate.js tag to WordPress

1. Log in to your WordPress admin panel and install the plug-in

Click Plugins → Add new:

2. Search for the plug-in and install it

Search for plugin "Header and Footer". It allows you to add HTML code into your website header easily (alternatively, you can add the code directly to your WordPress code). Look for the "Header and Footer" plug-in and click "Install Now". After that activate the plug-in.

3. Copy-paste following Javascript snippet into the Head section

Copy-paste this tag:

<link rel="stylesheet" href="//translatejs.gl-cdn.net/services/generic/selector-ui.css">
<script src="//translatejs.gl-cdn.net/services/generic/selector-ui.js"></script>
<script src="//translatejs.gl-cdn.net/translate.js"></script>
<script>
    GetLocalization.init({
        'apiKey': 'Your-API-Key',
        'languagesClass': 'gl-languages',
        'sourceLanguage': 'en'
    });
</script>

to HEAD section here:

And make sure to change your APIKey to the one you can find in your Workspace settings. If you don't have a Workspace yet, create one at https://www.getlocalization.com/start-workspace/

Note: You may have received the tag already from your Get Localization project manager. Simply copy it to HEAD section as explained above.

4. Scroll down and Save the changes.

Now you are ready! The script is automatically collecting textual content from your website. This means that you need to open the pages you wish to translate. After an hour or so, strings are ready in the system and you can order your first batch of translations.

FAQ

How content is collected and published?

Check this documentation for further details about Translate.js system

Why can't I see any content in my Workspace?

It takes some time for all the data to be imported to the system. Typically this is done within an hour. If you still don't see any content, please check that your API key is correctly set.

I published my translations but I don't see them on my site?

Translate.js is caching very aggressively in order to provide best possible user experience to your users. It can take up to two hours that all the caches expire.

Get Started With Get Localization Today

Get an instant translation quote Try Get Localization Workspace for Free