Localization support

Lytx UI components use English as the default. To localize, use the parameter translations-src.

The value of the localization parameter should be a path to a JSON file with the following structure using the general translation keys.

Example of the format


Example of the parameter


Translation Keys

Following are the general translation keys that you can configure for localization of all components:


In addition to these keys, each component stores its own keys for translation. See the component-specific documentation for more information.

Key Type Description
rtl Boolean

Determines the direction of the text

RTL = right to left

LTR = left to right

lang String The language code
name String The language name
values Object An object of the texts in the component.
Keys must be according to the documentation of each component