Go Dark Go Light
Stand with Ukraine!  How can you help?

Magento 2 Language and Store Switcher Extension

Magento 2 Language and Store Switcher is an extension that allows you to enable GeoIP redirect to store view based on visitor country (geographic location / Geo IP) or browser language automatically or display suggestion language popup. It is useful for merchants that sell globally.

You can automatically display the locale (store view) that visitors prefer. For example, display German for visitors from Germany, and for visitors from Canada you can display English or French based on their browser language.

  • Redirect visitors to a certain store view based on their location or browser language
  • Set store views to which redirect visitors from different country
  • Enable automatic switcher or langage suggestion popup
  • Switch customers to store views within one or multiple websites
  • Restrict language switcher to all or specific pages by IP
  • Use the built-in simulation tool to test the settings
  • Disable auto language switcher for different robots
one-time payment
Buy Now Free Trial
Purchase as part of the Magento 2 GeoIP Switcher and save 10% OFF.
Switch store views automatically in Magento
Set default store views by country for the language switcher in Magento
Language suggestion pop up in Magento
Live Demo
Compatibility:Magento 2.3.0 - 2.4.7 (CE, EE, ECE, B2B)
hyva compatible
Composer Package

Language Switcher Based on IP Address

Managing a multi-language website provides you with a lot of opportunities to grows and develop. And Magento 2 Language Switcher Extension allows you to provide a personalized shopping experience for your customers. This store switcher detects customers’ location and automatically redirects them to the store view in their local language.

GeoIP Redirection Based on IPs
GeoIP Redirection Based on Browser Language

Store Switcher Based On Browser Language

Usually, customers have to manually choose which store view to visit once they land on your default store view. It is not very convenient. Except for the option to redirect customers to store view based on their location, Magento Auto Language Switcher offers you the redirect based on customers’ browser language. Be one step ahead of your customer! Provide a better multi-language experience with this Magento store switcher.

Language Switcher Popup

Redirecting people to the store view in their local language automatically is a great option. However, sometimes you have to leave it up to your customers. Automatic Magento 2 Language Switcher provides the Language Switcher Popup that allows them to decide whether they want to be redirected. This tells your website visitors that you care about their user experience and makes them come back for more.

Language Switcher Popup
Website Switcher in Magento 2

Website Switcher

Do you have a multi-language website or multi-store within your Magento 2? Language Switcher for Magento 2 covers that as well and offers the Website Switcher feature. You can share store views per website if your store views are within one website or globally if you have different websites created in your Magento. Improve your customers' experience in your store even more with our Store Switcher Extension.

GeoIP Databases

To ensure correct GeoIP detection this Language Switcher for Magento 2 uses multiple GeoIP databases, like MaxMind IP Database, Cloudflare IP Geolocation and PHP GeoIP. All of them are included in the extension out-of-the-box and updated automatically by cron. You can be assured that your customers will be directed to the store views in their local language correctly since our extension provides that.

Language Switcher GeoIP Databases
Language Switcher Testing

Language Switcher Testing

Put yourself in your customers’ shoes and check their experience on your website. Our Magento 2 Auto Langauge Switcher allows you to simulate geolocation and check how well the extension performs. Just set the IPs and the location you want them to be identified with. The language switcher will redirect you to the relevant store view based on your settings.

Robot Restrictions

Search crawlers and robots scan your website on a regular basis to detect the best content for search users. It is important all of your content out there is scanned and analyzed properly to drive traffic to your website. That is why you can disable the automatic Magento 2 Language Switcher for crawlers and bots so Google and other bots can scan your site as usual with no redirection.

Robot Restrictions
IP Restriction

Location Restrictions

For some reason, there might be places and locations you don’t want Magento 2 Language Switcher to work for. Regarding this, you can just enter the IPs in a particular field and your website visitors from those locations will land on your default store view.

Make sure it's a good match!

Uncertain whether the Magento 2 Language Switcher Extension has all the features you're looking for, or if it aligns with your goals?

Request a free trial Suggest a new feature

Integration With Custom Themes

With our Magento 2 Language Switcher, you get a complex solution that doesn’t affect your Magento 2 theme. We created the store switching extension that works flawlessly on multiple themes and causes no conflicts, even on custom ones.

Magento 2 Currencies

Does the Language Switcher extension provide support to varnish cache?

Yes, it does. To make the module work properly with the varnish cache you need to modify the Varnish Cache configuration file (by default /etc/varnish/default.vcl) on your server and restart varnish. Please add these lines of code to the varnish config file:

if (req.http.cookie !~ "PHPSESSID=" && req.http.User-Agent !~ "bot" && req.http.User-Agent !~ "loader") {
return (pass);

With this setting, your store will be displayed without varnish cache during the first visit. You need to do this as the GeoIP detections held on the PHP level, and you need to allow varnish to skip the first visitor's request to make GeoIP detection possible. Check Magefan Blog Extension - Blog Post Link for more information.


Can I install Magento 2 Auto Language Switcher module via the composer?

Yes, you can. All our modules can be installed via the composer. Once you purchase the extension, you receive keys to the private Magefan composer repository and find the composer installation commands available in the "My Downloads" section.


Does Magento support multi-language?

Yes, Magento supports multi-language and allows you to create multiple store views in different languages. You can set locales for these store views, install the language packs and translate Magento 2 pages.


How to add language switcher to Magento 2 header?

Language Switcher is a default Magento functionality. When you create store views in the admin panel they appear in the store switcher on the storefront.


How to change default language in Magento 2?

To change default language in Magento 2 frontend go to Stores > Configuration and switch to the store view you want to change the language for. Then set the default language in General > Locale Options > Locale section.

People Also Searched For
  • magento 2 language switcher
  • magento 2 store switcher
  • magento store switcher
  • magento language switcher
  • magento language selector
  • store switcher magento
  • magento 2 store switcher extension
  • language switcher magento 2
  • auto language switcher
  • magento 2 redirect to store view
  • magento geoip redirect
Quick Overview Video

Attracting more customers going global? Are you interested? If yes you should definitely use the Magento 2 Auto Language Switcher Extension. Display locale at your multi-language Magento 2 store based on the visitors' country or their browser language.


Become closer to your customers letting them know about your store and the services you provide. What if you offer something they are so desperate to find?

Check out this short video here to learn about Auto Language Switcher module configuration.
Related Products
Magento 2 Currency Switcher
Currency Switcher
one-time payment
Magento 2 Translation
Special Price FREE Regular Price $79
one-time payment
Magento 2 GeoIP Switcher
GeoIP Switcher
Special Price $149 Regular Price $178
one-time payment
Magento 2 SEO Extension
one-time payment
Magento 2 Hreflang
Hreflang Tags
one-time payment
Magento 2 CMS Display Rules
CMS Display Rules
one-time payment
What our
clients say

Thanks Magefan Team for this module and support! Works as we expected.

Jenny Morin
Brands Who Trust Us
Magento 2 Language and Store Switcher Extension
Live Demo