Interface Globalization

Index

Methods

Methods

public dateToString(date: Date, successCallback: (properties: { value: string; }) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationDateOptions)

Parameters

  • date: Date
  • successCallback: (properties: { value: string; }) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationDateOptions optional

public getCurrencyPattern(currencyCode: string, successCallback: (parameters: GlobalizationCurrencyPattern) => void, errorCallback: (error: GlobalizationError) => void)

Parameters

  • currencyCode: string
  • successCallback: (parameters: GlobalizationCurrencyPattern) => void
  • errorCallback: (error: GlobalizationError) => void

public getDateNames(successCallback: (properties: { value: string[]; }) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationDateNameOptions)

Parameters

  • successCallback: (properties: { value: string[]; }) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationDateNameOptions optional

public getDatePattern(successCallback: (properties: GlobalizationDatePattern) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationDateOptions)

Parameters

  • successCallback: (properties: GlobalizationDatePattern) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationDateOptions optional

public getFirstDayOfWeek(successCallback: (properties: { value: number; }) => void, errorCallback: (error: GlobalizationError) => void)

Parameters

  • successCallback: (properties: { value: number; }) => void
  • errorCallback: (error: GlobalizationError) => void

public getLocaleName(successCallback: (properties: { value: string; }) => void, errorCallback: (error: GlobalizationError) => void)

Parameters

  • successCallback: (properties: { value: string; }) => void
  • errorCallback: (error: GlobalizationError) => void

public getNumberPattern(successCallback: (parameters: GlobalizationNumberPattern) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationNumberOptions)

Parameters

  • successCallback: (parameters: GlobalizationNumberPattern) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationNumberOptions optional

public getPreferredLanguage(successCallback: (properties: { value: string; }) => void, errorCallback: (error: GlobalizationError) => void)

Parameters

  • successCallback: (properties: { value: string; }) => void
  • errorCallback: (error: GlobalizationError) => void

public isDayLightSavingsTime(date: Date, successCallback: (properties: { dst: boolean; }) => void, errorCallback: (error: GlobalizationError) => void)

Parameters

  • date: Date
  • successCallback: (properties: { dst: boolean; }) => void
  • errorCallback: (error: GlobalizationError) => void

public numberToString(number: number, successCallback: (properties: { value: string; }) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationNumberOptions)

Parameters

  • number: number
  • successCallback: (properties: { value: string; }) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationNumberOptions optional

public stringToDate(dateString: string, successCallback: (properties: GlobalizationDate) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationDateOptions)

Parameters

  • dateString: string
  • successCallback: (properties: GlobalizationDate) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationDateOptions optional

public stringToNumber(string: string, successCallback: (properties: { value: number; }) => void, errorCallback: (error: GlobalizationError) => void, options?: GlobalizationNumberOptions)

Parameters

  • string: string
  • successCallback: (properties: { value: number; }) => void
  • errorCallback: (error: GlobalizationError) => void
  • options?: GlobalizationNumberOptions optional