Preload Languages
This plugin provides the functionality of preloading the provided languages when the browser is idle by using the requestIdleCallback
API.
#
Installationnpm install @ngneat/transloco-preload-langs
#
Usagetransloco-root.module.ts
import { TranslocoPreloadLangsModule } from '@ngneat/transloco-preload-langs';
@NgModule({ imports: [ TranslocoPreloadLangsModule.forRoot(['es', 'some-scope']) ] ...})export class TranslocoRootModule {}