File

src/core/localization.configuration.ts

Description

Describes configuration for LocalizationModule

Index

Properties

Properties

bundlesOutputPath
bundlesOutputPath: string
Type : string

Path relative to published folder where webpack will copy translation bundles

debugMode
debugMode: boolean
Type : boolean

Debug mode switch

enableTranslationDeactivation
enableTranslationDeactivation: boolean
Type : boolean

Enable the ability to switch the translations on and off at runtime.

endPointUrl
endPointUrl: string
Type : string

Url to fetch translation bundles from

fallbackLanguage
fallbackLanguage: string
Type : string

Fallback language of resource in case translation in language does not exist

fallbackLocalesMap
fallbackLocalesMap: literal type
Type : literal type
Optional

Fallback language map of resource in case translation in language does not exist. translate to unsupported language will try to map to supportedLocales from below property.

Example :
```typescript
{
  supportedLocales: ['en-GB', 'en-US', 'fr-FR'],
  fallbackLocalesMap: {'en-CA': 'en-US', 'de': 'fr-FR'}
}
// translate to en-CA -> fallback to en-US, translate to de-DE -> fallback to fr-FR,
// translate to en-NZ -> fallback to en-GB, translate to en -> fallback to en-GB.
Example :
fetchOptions
fetchOptions: RequestInit
Type : RequestInit
Optional
language
language: string
Type : string
Optional

Application display language

mergeWithLocalTranslations
mergeWithLocalTranslations: boolean
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: literal type
Type : literal type
Optional

Query parameters for fetching the localization resources

rtlLanguages
rtlLanguages: string[]
Type : string[]

List of RTL language codes

supportedLocales
supportedLocales: string[]
Type : string[]

List of available languages

useDynamicContent
useDynamicContent: boolean
Type : boolean

Prefix endPoinrUrl with dynamicContentPath provided by DynamicContentPath

results matching ""

    No results matching ""