Interface JLanguageService
Methods
addBundle
- addBundle(bundle): void
Returns void
compare
- compare(a, b, order?): number
Returns number
getDateFnsDateFormat
- getDateFnsDateFormat(displayTime?, longFormat?): string
Parameters
Optional displayTime: booleanOptional longFormat: boolean
Returns string
getDateFnsLocale
- getDateFnsLocale(displayTime?): any
Parameters
Optional displayTime: boolean
Returns any
is12HoursTimeFormat
- is12HoursTimeFormat(): boolean
Returns boolean
isValidLocale
- isValidLocale(locale): boolean
Returns boolean
setLocale
- setLocale(locale): void
Returns void
subscribeToLocaleChange
- subscribeToLocaleChange(callback): (() => void)
Returns (() => void)
translate
- translate(params): string
Returns string