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

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