Options
All
  • Public
  • Public/Protected
  • All
Menu

Class I18n<T, M>

Type parameters

Hierarchy

  • I18n

Index

Constructors

Properties

Methods

Constructors

constructor

  • new I18n<T, M>(localesTextMap: T): I18n<T, M>

Properties

Private currentTextMap

currentTextMap: ITextMap = {}

language

language: keyof T

Methods

format

  • format(contentKey: keyof M, args?: Record<string, string>): string
  • Parameters

    • contentKey: keyof M
    • Optional args: Record<string, string>

    Returns string

setLocal

  • setLocal(locale?: keyof T): void

Generated using TypeDoc