src/core/localization.configuration.ts
Describes configuration for LocalizationModule
Properties |
bundlesOutputPath |
bundlesOutputPath:
|
Type : string
|
Path relative to published folder where webpack will copy translation bundles |
debugMode |
debugMode:
|
Type : boolean
|
Debug mode switch |
enableTranslationDeactivation |
enableTranslationDeactivation:
|
Type : boolean
|
Enable the ability to switch the translations on and off at runtime. |
endPointUrl |
endPointUrl:
|
Type : string
|
Url to fetch translation bundles from |
fallbackLanguage |
fallbackLanguage:
|
Type : string
|
Fallback language of resource in case translation in language does not exist |
fetchOptions |
fetchOptions:
|
Type : RequestInit
|
Optional |
Fetch options object as per https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters |
language |
language:
|
Type : string
|
Optional |
Application display language |
mergeWithLocalTranslations |
mergeWithLocalTranslations:
|
Default value : false
|
Type : boolean
|
Merge the translations from DynamicContentPath with the local translations Warning: Enable this option will download two localization bundles and can delay the display of the text on application first page |
queryParams |
queryParams:
|
Type : literal type
|
Optional |
Query parameters for fetching the localization resources |
rtlLanguages |
rtlLanguages:
|
Type : string[]
|
List of RTL language codes |
supportedLocales |
supportedLocales:
|
Type : string[]
|
List of available languages |
useDynamicContent |
useDynamicContent:
|
Type : boolean
|
Prefix endPoinrUrl with dynamicContentPath provided by DynamicContentPath |