Skip to content

Functions

Deprecated! Use updateLocaleInfo instead Updates the locale information for the specified locale

▸ addLocale(locale: string,localeData: LocaleInfo): void

Returns void


Gets the current locale.

▸ getCurrentLocale(): string

Returns string - The locale.


▸ getLocaleSettings(lang?: string): any

  • lang: string, Optional

Returns any


Gets added locales with their names.

▸ getLocales(): LocaleInfoItem[]

Returns LocaleInfoItem[] - The locales.


▸ getLongMonthName(monthNum: number): string

  • monthNum: number

Returns string


▸ getLongWeekDayName(dayNum: number): string

  • dayNum: number

Returns string


▸ getOneLocaleSetting(key: string): any

  • key: string

Returns any


▸ getShortMonthName(monthNum: number): string

  • monthNum: number

Returns string


▸ getShortWeekDayName(dayNum: number): string

  • dayNum: number

Returns string


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

  • args: string[] - The keys of the resource string.

Returns string - Text of the resource defined by key.


Sets the curent locale.

▸ setCurrentLocale(l: string): void

  • l: string - The locale.

Returns void


Deprecated! Use setCurrentLocale instead Sets the curent locale.

▸ setLocale(l: string): void

  • l: string - The locale.

Returns void


Updates the locale information for the specified locale. If locale does not exist yet - it will added.

▸ updateLocaleInfo(locale: string,localeData: LocaleInfo): void

Returns void


Updates the texts for the specified locale

▸ updateLocaleTexts(locale: string,texts: any): void

  • locale: string
  • texts: any

Returns void