Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalizableText

Hierarchy

  • LocalizableText

Implements

Indexable

[key: string]: string | any

Index

Constructors

Methods

Constructors

constructor

Methods

localize

  • localize(locale: string, fallbackLocale: string): string
  • Translate the text in the given locale. Will fall back to 'en' when neither locale neither fallbackLocale are available

    Parameters

    • locale: string

      Locale to try to retrieve the translated text

    • fallbackLocale: string

      Fall back to a translation in this locale if preferred locale was not available

    Returns string

Generated using TypeDoc