Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "api/i18n"

Index

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

  • registerStringBundle(locale: string, bundle: any): void
  • Registers a string bundle for the given locale

    export

    Parameters

    • locale: string
    • bundle: any

    Returns void

tr

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

    export

    Parameters

    • key: string
    • Default value locale: string = "en"
    • Optional args: any

    Returns string

Generated using TypeDoc