Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "api/i18n"

Index

Variables

Const DEFAULT_LOCALE

DEFAULT_LOCALE: "en" = "en"

Functions

fmt

  • fmt(format: string, args?: any): string
  • Formats the specified string and substitutes any placeholders (enclosed in {}) with the specified arguments

    export

    Parameters

    • format: string
    • Optional args: any

    Returns string

registerStringBundle

  • Registers a string bundle for the given locale

    export

    Parameters

    Returns void

tr

  • tr(key: keyof ILocalizedMessages, locale?: string, args?: any): string
  • Returns the localized string for the given key

    export

    Parameters

    • key: keyof ILocalizedMessages

      Any property name of ILocalizedMessages

    • Default value locale: string = DEFAULT_LOCALE
    • Optional args: any

    Returns string

Generated using TypeDoc