UNPKG

@yelon/theme

Version:

ng-yunzai theme system library.

18 lines (17 loc) 824 B
import { Provider } from '@angular/core'; import { Observable } from 'rxjs'; import { FullLocaleData, LocaleData } from './locale.types'; import * as i0 from "@angular/core"; export declare class YelonLocaleService { private _locale; private change$; constructor(locale: FullLocaleData | null); get change(): Observable<FullLocaleData>; setLocale(locale: FullLocaleData): void; get locale(): FullLocaleData; getData(path: keyof FullLocaleData): LocaleData; static ɵfac: i0.ɵɵFactoryDeclaration<YelonLocaleService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<YelonLocaleService>; } export declare function YELON_LOCALE_SERVICE_PROVIDER_FACTORY(exist: YelonLocaleService, locale: FullLocaleData): YelonLocaleService; export declare const YELON_LOCALE_SERVICE_PROVIDER: Provider;