Preload Languages
This plugin provides the functionality of preloading the provided languages when the browser is idle by using the requestIdleCallback
API.
Installation
npm install @jsverse/transloco-preload-langs
Usage
transloco-root.module.ts
import { provideTranslocoPreloadLangs } from '@jsverse/transloco-preload-langs';
@NgModule({
providers: [
provideTranslocoPreloadLangs(['es', 'some-scope'])
]
...
})
export class TranslocoRootModule {}