Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "i18"

Index

Interfaces

Variables

Functions

Variables

Const i18next

i18next: any = require('i18next')

Functions

init

  • init(lang?: string): PromiseLike<any>
  • Initializes the language repository.

    Parameters

    • Optional lang: string

    Returns PromiseLike<any>

    The promise.

t

  • t(key: string, ...args: any[]): string
  • Returns a translated string by key.

    Parameters

    • key: string

      The key.

    • Rest ...args: any[]

    Returns string

    The "translated" string.

Generated using TypeDoc