Do you have a Multilingual TYPO3 site? Are you looking for automatic language detection and redirects to your TYPO3 site? Well, then, you landed in the right place. In this blog, We have provided a list of TYPO3 language detection solutions that help redirect your site visitors based on their Browser’s language and IP/Country based location.
TYPO3 is the most popular due to the Multilingual feature since its foundation in 1997. As a TYPO3 site owner, You always want to give the best accessibility to your site visitors. If you have a Multilingual TYPO3 site, it would be an excellent experience for your visitors to detect language and redirect to that site automatically. For example, Your German language site should automatically detect “yoursite.com/de” to your German visitor.
Fortunately, The TYPO3 community actively supports creative initiatives and always believes in developing and sharing OpenSource TYPO3 extensions. Below list of TYPO3 extensions is easy to install and configure Automatic Language Detection & Redirects based on your visitor's browsers, country location, IP address and more! Keep reading the list.
I want to dedicate this blog to all the authors and contributors of below TYPO3 extensions below who worked hard and dedicated to their TYPO3 extensions. #T3Kudos
Before we start, just a side note - Once upon a time, Back in 2003, My friend Thomas Löffler created an excellent TYPO3 extension EXT:rlmp_language_detection which has helped the TYPO3 community for years. #T3Kudos to him too.
IP and Language Redirect (EXT:ipandlanguageredirect)
Simply designed and developed with the latest TYPO3 core standard, EXT:ipandlanguageredirect is the most recent popular language detection TYPO3 extension. It's been developed and maintained by the famous In2code TYPO3 Agency. The TYPO3 extension redirects a user based on location and browser language.
Personally, I know Alex (the author extension & most active TYPO3 contributor), And I highly recommend using this TYPO3 extension which has the latest standard and assure to get compatibility with the following TYPO3 versions just like their other extensions ;)
Why Choose?
Because… It looks promising to get compatibility with future TYPO3 LTS versions.
Language Detection (EXT:language_detection)
The only language detection official verified TYPO3 extension from Tim Lochmüller (Founder of typo3blogger.de). Technically, EXT:languag_detection uses a PSR-15/PSR-7 middleware/request to handle a language detection logic via PSR-14 events. Very flexible! Give it a try and check out the future of language detection!
Why Choose?
Because… It’s only language detection “Verified TYPO3 Extension”
Locate - Identify users by IP and/or browser language (EXT:locate)
EXT:locate - Highly configured, Feature-rich and Developer friendly. Florian Wessels created this TYPO3 language detection which concerns The user's country, preferred language, and other facts will be detected. The user can be redirected to other languages or pages depending on configurable rules. Locate also provides geo-blocking for configurable pages in configurable countries.
Why Choose?
Because… Feature-rich language detects TYPO3 extension
Language Detection Redirect Resolver (EXT:ig_language_detection)
Yet another TYPO3 language detection extension developed and maintained by Daniel Abplanalp since 2019. Language detection in PSR-15 middleware stack on uri=/. Based on the Accept-Language Header the corresponding site config is chosen. Additional configuration in YAML site configuration is available like aliases and more.
Site Language Redirection (EXT:site_language_redirection)
Harald Atteneder developed an extension which supports many TYPO3 versions. PSR-15 middleware redirects users to the correct site language via HTTP headers (Accept-Language) and IP addresses. If the visitor navigates to another language (e.g. via language switch), a cookie gets set to save the new language as the preferred language. Search Engine bots will not be redirected.
Using .Htaccess - Browser Language Detect & Redirect TYPO3
Hmm! Still reading :) It means you don't want any TYPO3 extension to language to detect & redirect. You can use below simple TYPO3 + .Htaccess solution for Browser language detection & redirects.
Redirect visitors to the root domain path (e.g. www.yoursite.com) to the appropriate language version. Fallback to the English version if no matching browser language is defined. Based on the language version being at e.g. www.yoursite.com/de/
Why Choose?
Because… You don’t want to use any 3rd party TYPO3 extension :)
# language starts with DE
RewriteCond %{REQUEST_URI} !typo3
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteRule ^$ /de/ [L,R=301]
# language starts with FR
RewriteCond %{REQUEST_URI} !typo3
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteRule ^$ /fr/ [L,R=301]
# else redirect to the English version
RewriteCond %{REQUEST_URI} !typo3
RewriteRule ^$ /en/ [L,R=301]
Wrapping-up!
Thanks for reading my blog. I hope you learn and find it helpful.
In conclusion, Which automatic language detection TYPO3 extension should you use? The answer is “based on your requirement”. As you go in-depth, you will find each TYPO3 extension (from the above list) has its unique features. Also, Check other factors while choosing TYPO3 extensions e.g., how many contributors, compatibility of TYPO3 extensions, documentation, pending issues list, and future tasks etc.
By the way, What’s your favourite TYPO3 extension for language detection? Did I miss any other TYPO3 extension or solution? Do you have any other ideas/suggestions? I would love to hear your feedback in the comment box.
Have a Happy Multilingual with TYPO3!
Sanjay Chauhan
CTO at T3Planet & NITSANSanjay Chauhan, Co-Founder of NITSAN (Award winning TYPO3 agency) and Pioneer of T3Planet (first-ever TYPO3 Shop).
A true TYPO3 fanatic since 2010. I bring strong TYPO3 experience in building customer-business…
More From Author