Skip to main content

Widget internationalization

EyeFitU SizeEngine widget is configurable to address customers from around the globe.

Language

User interface language is set on widget initialization and is not changeable by user from the widget.

Instead of guessing who you users are, we allow the store to set the widget language. Usually stores select language based on users profile or store language.

When using SDK, use data-language attribute on the widget element to set the widget language, see SDK documentation for a complete example.

<div
data-eyefitu-sizing-widget
data-language="de"
[...]
></div>

Units of measure

On the other hand, users are provided a switch to select units of measure of convenience. While we accept size charts both in inches and centimeters, users are free to switch between units and see convenient measurements.

Based on anticipated customer profile, store could set a default to be imperial or metric. Customer would be able to change it right on the first widget screen.

When using SDK, use data-default-units attribute to set the default units of measure, see SDK documentation for a complete example.

<div
data-eyefitu-sizing-widget
data-default-units="metric"
[...]
></div>