Once your app implements its language solution, you can provide language services to supporting libraries by importing LanguageIntegrationModule
.
The module should be imported only once, in your app root, using the forRoot()
method.
Use the useFactory
and deps
properties to provide your language services. The following example shows how to configure a provider for ngx-translate
:
Implementing integration in a library