Configuration for integrating language services into a library.
Used in LanguageIntegrationModule.forRoot()
.
language/src/config/language-integration-config.ts
Properties |
default |
default:
|
Type: string | DefaultLanguageFactory
|
The default language used by the integrated app (e.g. 'en', 'fr', 'en-US', 'es-CL'). This can be a local array or a resolvable async factory which returns the language names. When providing a factory returning an observable, it is the app's responsability to provide an auto completing observable.
A common way would be to pipe Observables left open will cause memory leaks in the language integration service. |
ready |
ready:
|
Type: ObservableLike<any>
|
Optional |
(Optional) A resolvable async object which emits once, when the intgrated language services are ready for operation. Provide a value if you need to control and delay the execution of language related operations. |
supported |
supported:
|
Type: string[] | SupportedLanguagesFactory
|
The languages supported by the integrated app (e.g. 'en', 'fr', 'en-US', 'es-CL'). This can be a local array or a resolvable async factory which returns the language names. When providing a factory returning an observable, it is the app's responsability to provide an auto completing observable.
A common way would be to pipe Observables left open will cause memory leaks in the language integration service. |
translate |
translate:
|
Type: TranslationFn
|
The function used for live translation. |