API

 

LoadTranslationsGuard

Loads the translations for a lazy loaded module before loading the module itself.

class LoadTranslationsGuard {
  constructor( translationService: TranslationService ): void;
  canLoad( route: Route ): Promise< boolean >;
}

constructor()

Creates a new instance of the guard.

translationService
The translation service.

canLoad()

Loads the translations of a lazy loaded module for all languages already in use.

route
The route of the lazy loaded module to load.

Returns a promise indicating whether loading has succeeded.