@doku-dev/doku-fragment
Version:
A new Angular UI library that moving away from Bootstrap and built from scratch.
22 lines (21 loc) • 683 B
TypeScript
import * as i0 from "@angular/core";
export declare class I18nService {
private route;
/**
* @default 'selected-language'
*/
SELECTED_LANG_KEY: string;
/**
* Get active language from query params or local storage.
*
* The value is normalized to uppercase.
* Defaults to "ID" if not exists on local storage or when the language is not supported.
*/
getActiveLanguage(): string;
/**
* The language value will be normalized to uppercase.
*/
setActiveLanguage(language: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
}