There are cases when you want to remove the language switcher dropdown from the storefront.

Magento 2 Language Switcher Remove

For example, you may want to remove it because you use Magento 2 Automatic Language Switcher and don't want to allow customers to manually change a store view.

It is an easy task to do. Please follow these simple steps:

1. Create a new file inside your storefront theme folder:


2. Add this code into it:

<?xml version="1.0"?>
<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceBlock name="store_language" remove="true" />

In case you already have Magento_Theme/layout/default.xml file, then edit it and put this code before </body> closing tag:

<referenceBlock name="store_language" remove="true" />

3. Flush Magento cache, run CLI command:

bin/magento c:f


That's all :-)