Constructors
constructor
- new I18n<T, M>(localesTextMap: T): I18n<T, M>
-
Type parameters
Parameters
Returns I18n<T, M>
Properties
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