Forcing language selection in your storefront

Last updated

We translate Ecwid’s storefront to more than 50 languages using your customer’s browser setting. If there are no appropriate languages enabled, we’ll show your store in its default language. You can change your store’s default setting from English in your Ecwid Control Panel → Settings → General → Regional Settings, the Storefront Languages block.


Basically you do not need to do any language settings in Ecwid. You can enable/disable built-in Ecwid languages in Ecwid Control Panel → Settings → General → Regional Settings, the Storefront Languages block. You can also make your store always displayed in one language, which is set by default.

How can I force language selection in my store?

By default, a customer’s browser settings determines your storefront language. This reduces friction for your international customers and makes it easier for them to place an order. Easier checkout = more sales. However, some cases require a specific language regardless customer's browser settings.

You have two options:

  1. To force the language of your store, you may disable all translations except for your preferred language. After that your store will be always displayed in this language.
  2. You may be more specific by passing a special argument to the Ecwid widgets. You should add the new "lang" GET variable to all inclusions of the "script.js" file: 

<script type="text/javascript" src="
YOUR_STORE_ID&lang=LOCALE_CODE" charset="utf-8">

where YOUR_STORE_ID is your Store ID and LOCALE_CODE is the code (the two-letter codes "ISO 639-1" should be used) of the necessary language (for example en, es, fr, de). Here’s a list of language codes. Please note, the selected language should already exist in Ecwid and be enabled in the control panel.


<script type="text/javascript" src="
1003&lang=fr" charset="utf-8">

Related articles

Translating your Ecwid store to several languages
Changing texts in your Ecwid store
Translating product and category descriptions

Back to top
Has the article answered your question?

Awesome! Thanks for your feedback!

Please send us that question. We will be happy to help by email.

Send a message