@ngneat/transloco-preload-langs

Preload languages for Angular Transloco

Usage no npm install needed!

<script type="module">
  import ngneatTranslocoPreloadLangs from 'https://cdn.skypack.dev/@ngneat/transloco-preload-langs';
</script>

README

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 @ngneat/transloco-preload-langs

Usage

import { TranslocoPreloadLangsModule } from '@ngneat/transloco-preload-langs';

@NgModule({
  imports: [TranslocoPreloadLangsModule.preload(['es', 'todos-page|scoped'])],
  bootstrap: [AppComponent]
})
export class AppModule {}