This plugin detects the preferred language according on the country.
Polylang is a fantastic plugin to make WordPress multilingual. The Polylang extension enables you to detect the preferred language according on the country.
If your website contains 2 different locales with the same language (e.g. de_DE for German/German and de_AT for German/Austria) then Polylang automatically sets the language according to the browser settings.
Austrian website visitors who have set their operating system / browser to Germany (e.g. the Devices was buyed in Germany) will always be redirected to de_DE.
This Plugin detects the preferred language according on the visitors country and will set the language correct to de_AT.
Please notice that the IP API is only for non-commercial use allowed.
The plugin detects the country with the IP Geolocation API (https://ip-api.com/).
If no available language by country is found, the language of the browser is preferred. (https://polylang.pro/doc/detect-the-browser-preferred-language/)
If you have found a bug in my plugin, please send me an email with a short description.
I will fix the bug as soon as possible.
Thank you very much!
In case you want to show how much you appreciate my work, I’d be very grateful if you could give me positive rating with WordPress-Page and/or donate a small amount to me.