UNPKG

@nu-art/thunder

Version:

Thunder - React & Typescript based frontend framework

16 lines (15 loc) 630 B
/** * Created by tacb0ss on 27/07/2018. */ import { Locale, LocaleDef, LocalizationConfig, StringKey } from "./localization-types"; import { Module } from "@nu-art/ts-common"; export declare class LocalizationModule_Class extends Module<LocalizationConfig> { private activeLocale; protected init(): void; setLanguage(locale: Locale): void; getAvailableLanguages(): LocaleDef[]; getActiveLocale(): Locale; getString(key: StringKey, ...params: any[]): string; getStringFromLocale(locale: Locale, key: StringKey): string | undefined; } export declare const LocalizationModule: LocalizationModule_Class;