Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Translator

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • language: string

    Returns Translator

Properties

Private translations

translations: object

Type declaration

  • [key: string]: string

Methods

setLanguage

  • setLanguage(language: string): void
  • Parameters

    • language: string

    Returns void

translate

  • translate(key: string): string
  • Translates given key

    Parameters

    • key: string

    Returns string

Generated using TypeDoc