Functions
- addLocale
- getCurrentLocale
- getLocaleSettings
- getLocales
- getLongMonthName
- getLongWeekDayName
- getOneLocaleSetting
- getShortMonthName
- getShortWeekDayName
- getText
- setCurrentLocale
- setLocale
- updateLocaleInfo
- updateLocaleTexts
addLocale
Section titled “addLocale”Deprecated! Use updateLocaleInfo instead Updates the locale information for the specified locale
▸ addLocale(locale: string
,localeData: LocaleInfo): void
Parameters:
Section titled “Parameters:”- locale:
string
- localeData: LocaleInfo
Returns void
getCurrentLocale
Section titled “getCurrentLocale”Gets the current locale.
▸ getCurrentLocale(): string
Returns string
- The locale.
getLocaleSettings
Section titled “getLocaleSettings”▸ getLocaleSettings(lang?: string
): any
Parameters:
Section titled “Parameters:”- lang:
string
, Optional
Returns any
getLocales
Section titled “getLocales”Gets added locales with their names.
▸ getLocales(): LocaleInfoItem[]
Returns LocaleInfoItem[] - The locales.
getLongMonthName
Section titled “getLongMonthName”▸ getLongMonthName(monthNum: number
): string
Parameters:
Section titled “Parameters:”- monthNum:
number
Returns string
getLongWeekDayName
Section titled “getLongWeekDayName”▸ getLongWeekDayName(dayNum: number
): string
Parameters:
Section titled “Parameters:”- dayNum:
number
Returns string
getOneLocaleSetting
Section titled “getOneLocaleSetting”▸ getOneLocaleSetting(key: string
): any
Parameters:
Section titled “Parameters:”- key:
string
Returns any
getShortMonthName
Section titled “getShortMonthName”▸ getShortMonthName(monthNum: number
): string
Parameters:
Section titled “Parameters:”- monthNum:
number
Returns string
getShortWeekDayName
Section titled “getShortWeekDayName”▸ getShortWeekDayName(dayNum: number
): string
Parameters:
Section titled “Parameters:”- dayNum:
number
Returns string
getText
Section titled “getText”Returns localized text by the key defined in parameter. Here we get the text of the resource string assigned to CmdClickToAddCondition key:
▸ getText(args: string
[]): string
Parameters:
Section titled “Parameters:”- args:
string
[] - The keys of the resource string.
Returns string
- Text of the resource defined by key.
setCurrentLocale
Section titled “setCurrentLocale”Sets the curent locale.
▸ setCurrentLocale(l: string
): void
Parameters:
Section titled “Parameters:”- l:
string
- The locale.
Returns void
setLocale
Section titled “setLocale”Deprecated! Use setCurrentLocale instead Sets the curent locale.
▸ setLocale(l: string
): void
Parameters:
Section titled “Parameters:”- l:
string
- The locale.
Returns void
updateLocaleInfo
Section titled “updateLocaleInfo”Updates the locale information for the specified locale. If locale does not exist yet - it will added.
▸ updateLocaleInfo(locale: string
,localeData: LocaleInfo): void
Parameters:
Section titled “Parameters:”- locale:
string
- localeData: LocaleInfo
Returns void
updateLocaleTexts
Section titled “updateLocaleTexts”Updates the texts for the specified locale
▸ updateLocaleTexts(locale: string
,texts: any
): void
Parameters:
Section titled “Parameters:”- locale:
string
- texts:
any
Returns void