@jsverse/transloco-preload-langs
Version:
Transloco preload languages while idle
13 lines (12 loc) • 612 B
TypeScript
import { InjectionToken, OnDestroy } from '@angular/core';
import { TranslocoService } from '@jsverse/transloco';
import * as i0 from "@angular/core";
export declare const TRANSLOCO_PRELOAD_LANGUAGES: InjectionToken<string[]>;
export declare class TranslocoPreloadLangsService implements OnDestroy {
private readonly idleCallbackId;
private subscription;
constructor(service: TranslocoService, langs: string[]);
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TranslocoPreloadLangsService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TranslocoPreloadLangsService>;
}