Localization

Translation

The SDK provides the means to translate all text displayed on the UI. This is done by passing an object literal that acts as a dictionary lookup ({ [key: string]: string }) to the target component or JavaScript API instance. The property name is always translations and is an optional property on all components, as well as the Sybrin.Identity.Options instance passed to the JavaScript API.

The keys within the dictionary lookup are used to target specific text for translation, then the text is replaced with the provided value corresponding to the key.

Keys may be translation keys, or the exact source text that should be replaced.

Please see the translations section under the country select component for these country name translations:

  • sy-i-translation-19 to sy-i-translation-26

  • sy-i-translation-86

  • sy-i-translation-90 to sy-i-translation-329

The following table details all translations available in the Identity SDK: