Skip to Content

Locales

Interface to build a text in multi-language.

Interface

interface ILocales { 't'?: string; 'en-US'?: string; 'es-ES'?: string; [key: string]?: string; }

Properties

t

Path of the property of the translations object of the Addon where the translation is located

  • Type: string

  • Required: No

  • Example:

{ "type": "TextBlock", "text": { "t": "socialbar.viewDetail" } }
    • en-US.json
    • es-ES.json
en-US.json
{ "socialbar": { "viewDetail": "View detail" } }
es-ES.json
{ "socialbar": { "viewDetail": "Ver detalles" } }

en-US | es-ES | [key: string]

Text to be displayed for the indicated language

  • Type: string

  • Required: No

  • Example:

{ "type": "TextBlock", "text": { "en-US": "View detail", "es-ES": "Ver detalles" } }
Last updated on