Class LocaleValidatorService
Constructors
constructor
- new LocaleValidatorService(supportedLocales: string[]): LocaleValidatorService
Parameters
- supportedLocales: string[]
Methods
getDefaultLocale
- getDefaultLocale(): string
Returns string
- The default locale string.
getSupportedLocale
- getSupportedLocale(locale: string): null | string
Returns null | string
- The supported locale string.
getSupportedLocales
- getSupportedLocales(): readonly string[]
Returns readonly string[]
Service to validate and retrieve supported locales. This is used by the LocaleService to ensure that the locale selected is one that is supported.