Skip to main content

Site Language Override

By default, the Faslet Size Me Up Virtual Assistant uses the user's current browser language to determine the language to show. While this is a generally good user experience for most cases, we understand that often our partners have a language selector on their store.

Partner Portal Setting

In the Faslet Partner Portal, under the store settings, you can set the default language for the Size Me Up Virtual Assistant. This setting will override the user's browser language and show the widget in the selected language. This setting is available as an addon.

Locale Parameter

If you have a developer available, depending on your platform, Faslet provides the ability to pass an optional locale parameter to the Size Me Up Virtual Assistant. This parameter can be any standard 2 letter ISO-639-1 language code, however the current list of support languages is limited to English (en), Dutch (nl), German (de), Spanish (es), French (fr), Danish (da), Swedish (sv), Norwegian Bokmål (nb), Polish (pl), Italian (it), Croatian (hr) and Portuguese (pt). Specifying a code that is not currently supported will default/fallback to English (en).

Custom Snippet

When using the snippet directly, it can be specified on the faslet-app tag as follows:

<faslet-app
...
locale="LOCALE"
></faslet-app>

NPM

widget.withLocale(LANGUAGE);

React

<FasletWidget
...
locale="LOCALE"
/>

PHP

$widget->withLocale(LOCALE)
note

This is currently not possible in WooCommerce.

Help

In case of any questions, please don’t hesitate to contact us on support@faslet.me