There are cases when you want to remove the language switcher dropdown from the storefront that allows selecting different languages.

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:

app/design/frontend/ThemeVendor/ThemeName/Magento_Theme/layout/default.xml

2. Add this code into it:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="store_language" remove="true" />
</body>
</page>

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 :-)