Addons

Addons

TranslatePress comes with a few add-ons to make your website translation process even easier. Learn everything you need to know about each of them:
SEO Pack
Translate SEO elements. Get SEO support for page slugs, page titles, descriptions, and social graph information and multilingual sitemap support for all popular SEO plugins.
Learn how it works
Multiple Languages
The add-on that lets you add unlimited new languages to your website. Translate your website into as many languages as you want and make it truly multilingual.
Learn how it works
Translator Accounts
Add translator accounts to your website to help you translate your content without having to deal with the WordPress back-end.
Learn how it works
Browse as User Role
Easily navigate your website from the perspective of any user role. This add-on helps you go through dynamic content or content that is restricted to particular users much easier.
Learn how it works
Navigation Based on Language
Configure your website menus based on each language added. This add-on lets you display different menu items for each language your website is translated into.
Learn how it works
Automatic User Language Detection
Automatically detect each users』 default language and redirect them directly to their preferred language based on their IP address or browser settings.
Learn how it works
DeepL Automatic Translation
Replace manual translation of your website content with automatic machine translation, using the DeepL API.
Learn how it works

Change hreflang localization

Change hreflang localization

TranslatePress sets meta tags inside the html page to help Google and other indexing engines understand the languages and locations that a specific page is available in.

The hreflang attribute is a part of this meta tag where the language and location are specified.

You can change it using a bit of coding:

1. Create an empty plugin like this:https://gist.github.com/sareiodata/76f701e01db6685829db

2. Add the following code to the end of it:

add_filter('trp_hreflang', 'trpc_change_hreflang', 10, 2 ); function trpc_change_hreflang( $hreflang, $language ){ if ($language == 'fr_FR'){ // language code that you want to alter // the modified hreflang code you want to display in the page $hreflang = 'fr-CH'; } return $hreflang; }

3. Modify the code by editing the language code and the hreflang code. The rest of the hreflang codes will not change.

4. Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality

SEO Pack

SEO Pack

The SEO Pack Add-on allows you to translate important SEO elements from every page:

URL slugs

post/page/custom post type/post type base slugs
taxonomy/terms slugs

page title
page description
image alt tag
Facebook and Twitter title and descriptions (these are usually added by your SEO plugin and appear when users share your content)

To translate the above, simply select them from the string list under Meta Information, enter their translation and click 「Save translation」.

The URL slugs can be translated in depth from the String Translation tab.
TranslatePress SEO Pack addon works out of the box with all SEO plugins.
Install the SEO Pack Add-on
Install and activate any premium version of TranslatePress (Personal, Business, or Developer). Once installed, go to Settings → TranslatePress in your WordPress dashboard, and then navigate to the Addons tab. Activate the SEO Pack Add-on here.

Multilingual Sitemaps
Using the SEO Pack addon, TranslatePress will extend the Sitemaps functionality added by SEO plugins and automatically create a multilingual sitemap that includes all your translated content.
Your website sitemap will then correctly represent each individual translation.
Multilingual Sitemaps support is available for the most popular SEO plugins:

Yoast SEO
Rank Math
SEOPress
All in One SEO Pack
Squirrly SEO

The translation alternate links are implemented as specified in the Google Webmasters documentation.
Having all the important SEO elements translated, as well as creating a multilingual XML Sitemap will have a major impact on your site ranking into multiple languages.
Translating Slugs
The SEO Pack add-on allows translation of all the URL slugs:

Taxonomy slugs
Term slugs
Post slugs (this includes pages and custom post types)
Post type base slugs
WooCommerce slugs

To translate slugs you need to access the TranslatePress Translation Editor and switch to the String Translation tab (lower left).
Select the type of slugs you want to list from the mini tabs. Filter your search by translation status and keyword. Choose a language to have an easy overview over the translations.

The SEO Pack add-on is only available in the premium versions of the plugin.
Get SEO Pack Add-on

Automatic User Language Detection

Automatic User Language Detection

The Automatic User Language Detection Add-on is only available with a Developer or Business license.
Using the Automatic User Language Detection Add-on for TranslatePress, users will be redirected to their preferred language.
First-time visitors will be redirected to their preferred language based on their browser settings or IP address. The language is then saved in a cookie so that any time they return to the website, they will be automatically redirected to their last visited language.
Install the Automatic User Language Detection Add-on
Install and activate a premium version of TranslatePress (Business or Developer). Once installed, go to Settings → TranslatePress in your WordPress dashboard, and then navigate to the Addons tab.

Scroll down to the Automatic User Language Detection Add-on and Activate it here.

Configure your menu items
With the add-on active, you can go to Settings -> TranslatePress and select the method of language detection.
You can choose what method to be considered: their browser language setting, or their IP address.
Selecting the option First by browser language, then IP address will consider the user』s browser language setting. If it doesn』t match any of the site』s available languages selected in TranslatePress settings, then the IP address of the user will be used to determine its preferred language. If this doesn』t match any of the available languages either, then the default language will be displayed to the user or, if the option Use subdirectory for default language is set to Yes, the first language in the Translation Languages option.
Similarly, selecting the option First by IP address, then browser language will determine the language by IP and if that fails then browser language is considered.
Selecting Only by browser language or Only by IP address will not have a fallback user language detection method.

IP address based language
The visitor』s IP address is searched in the GeoLite2 database to determine the country from which the user accessed the website. The country is then searched in the locales code of the selected translation languages in TranslatePress Settings.
This product includes GeoLite2 data created by MaxMind.
Google Indexing
Google understands browser language redirection and will redirect your users to the specific language URL.
Google can index your site for various IP addresses, but there』s no guarantee for how these redirects will affect your site indexing. This is happening because Google frequently updates its indexing algorithms, so nobody knows exactly how these are working.
You can use Google Webmaster Tool to see how is your site indexed. Also, we recommend reviewing your index status from Webmaster Tool periodically.
One of the best methods to show your users that you have content in their language is to place a language switcher on your site.
Another way could be to first ask your users about the language that they prefer through a welcome page and then show them relevant content in that language.
Get Automatic User Language Detection Add-on

Change language name

Change language name

Looking to change the language name displayed in the language switcher?
If you』re using the Full Language Name option for your language switcher it is possible to change the language name that will be displayed to your users using the option of adding a new custom language, by following the steps below:
1. Add a new custom language with the language code of the language you wish to change the name of from TranslatePress -> Advanced -> Custom Language.You can read more about Custom Languages here.
2. You can find the correct language code by adding the language you wish to change the name of in General settings and copying the code. You can skip this step if you have already installed the language you want to change.

3. Change the language name to the desired name:

4. Modify the name by editing the language code and the language name. The rest of the languages will not change.
5. Do not forget to click the Add button and to save the changes.
Now you can select the language with the desired name from the language menu in General Setting.

Translator Accounts

Translator Accounts

The Translator Accounts add-on is only available with a Developer or Business license.
Using the Translator Accounts Add-on you can create or allow existing users to translate the site without admin rights.
The translators will be able to translate the website (directly from the front-end) without having to work with the WordPress back-end, site builders or meta boxes.
Install the Translator Accounts Add-on
Install and activate a premium version of TranslatePress (Business or Developer). Once installed, go to Settings → TranslatePress in your WordPress dashboard, and then navigate to the Addons tab.

Scroll down to the Translator Accounts Add-on and Activate it here.

Translator Accounts Features
Create a new user with the Translator role: WordPress → Users → Add New.

Allow existing users to translate the website: WordPress → Users → Edit User → TranslatePress Settings (or by changing their current role to the Translator role).

Get Translator Accounts Add-on

Browse As Role

Browse As Role

The Browse as User Role add-on is only available with a Developer or Business license.

You can browse your website from the translation editor as yourself (logged in) or as a non-logged in user.
This allows you to translate pages or strings that are dynamic based on the logged-in/ non-logged-in status.
The Browse as User Role add-on allows you to select any user role, then view the site like a user with that role would see it.
This makes it really easy to translate role-specific content.
Install the Browse as User Role Add-on
Install and activate a premium version of TranslatePress (Business or Developer). Once installed, go to Settings → TranslatePress in your WordPress dashboard, and then navigate to the Addons tab.

Scroll down to the Browse as User Role Add-on and Activate it here.

Get Browse As Role Add-on

Clickable Language Switcher

Clickable Language Switcher

By default the language switcher dropdown will open once you hover over it.
If you』re looking to make the dropdown language menu of the language switcher be displayed only when you click on it, you can use the following plugin:

Clickable Language Switcher (2877 downloads)

Automatic Translation

Automatic Translation

The Automatic Translation page from TranslatePress lets you enable and configure the automatic translation of your website content through the available APIs.
The free version of TranslatePress lets you use the Google Translate v2 API, while the paid versions also offer an integration with the DeepL API.
In order to use these APIs you will need to create an account with the vendor and get a key. Access to these APIs is not granted with a TranslatePress licence. For more info, refer to the pages below:
– How to generate a Google API key
– How to generate DeepL API key
To minimize translation costs, each untranslated string is automatically translated only once, then stored in the database.
Automatic Translation Settings

There are a few settings that you can configure when setting up the Automatic Translation feature.
Block Crawlers – if you enable this option, crawlers that are indexing your website will not trigger the automatic translation of your website
Limit machine translation / characters per day – this option lets you limit the amount of characters that the plugin translates through the selected translation API each day.
The default limit is set at 1 000 000 characters but you can adjust this to your liking. The main purpose of this option is to limit the overall costs that you experience from the translation API.
Log machine translation queries – this option is only recommended for testing and debugging as it might affect performance.
By enabling it, every request that is made to the selected translation API will be logged in your database so you can inspect it.

DeepL Automatic Translation

DeepL Automatic Translation

The DeepL Automatic Translation Add-on is only available with a Developer or Business license.
The DeepL Automatic Translation add-on for TranslatePress lets you automatically translate your website through the DeepL API.
DeepL is a very powerful machine translation tool backed by artificial intelligence and neural networks.
To check the list of supported languages, please go to this page and look at the Example Response.
Install the DeepL Automatic Translation Add-on
Install and activate a premium version of TranslatePress (Business or Developer). Once installed, go to Settings → TranslatePress in your WordPress dashboard, and then navigate to the Addons tab.

Scroll down to the DeepL Automatic Translation Add-on and Activate it here.

How to generate DeepL API key
In order to use the API, you will need to get an API key.
DeepL offers free API access that allows you to translate up to 500,000 characters per month for free.
If you need more than that, you can purchase a DeepL Pro API subscription: https://www.deepl.com/pro.html#developer
The package that contains API access is listed under For Developers → DeepL API and it costs 4.99€ + usage fees.
After you』ve created the account for DeepL go to your Account page where you will find your API key:

Copy the API key, then go to Settings → TranslatePress → Automatic Translation, select DeepL, choose your API version (free or paid), and enter your key.
Set Up Cost Control

From your DeepL Account Page, you can also control the overall costs that you might experience by using the API.
To do this, go to your DeepL Account Page and then click on Change cost control settings.

To activate cost control, check the box and then you can configure the Maximum total monthly price and the Maximum total monthly usage.
Get DeepL Automatic Translation Add-on