Skip to Content

Language

Set the language of AI Try-On, or let it follow the shopper's browser.

Without the language option, AI Try-On follows the shopper's browser language and falls back to English for a language it does not support. When your page has its own language switcher, set language to one of the values in the options reference, so the widget matches the page rather than the browser:

<button type="button" data-vizbl-ai-try-on-dialog data-vizbl-ai-try-on-language="en" ...>
  Try on
</button>

As an attribute, a value the widget does not support is ignored, as if the option were not set. In JavaScript and React, such a value shows English.

The language covers the widget's own text: the photo tips, the buttons and the messages. Your product's name and price appear as you pass them, so pass them in the page's language.