This plugin obtains information and performs operations specific to the user's locale and timezone.
Returns a date formatted as a string according to the client's locale and timezone.
Date to format.
Called on success with a properties object, that should have a value property with a String value.
Called on error with a GlobalizationError object. The error's expected code is GlobalizationError.FORMATTING_ERROR.
Optional format parameters. Default {formatLength:'short', selector:'date and time'}
Returns a pattern string to format and parse currency values according to the client's user preferences and ISO 4217 currency code.
Should be a String of one of the ISO 4217 currency codes, for example 'USD'.
Called on success getting pattern with a GlobalizatioCurrencyPattern object
Called on error getting pattern with a GlobalizationError object. The error's expected code is GlobalizationError.FORMATTING_ERROR.
Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar.
Called on success getting names with a properties object, that should have a value property with a String[] value.
Called on error getting the language with a GlobalizationError object. The error's expected code is GlobalizationError.UNKNOWN_ERROR.
Optional parameters. Default: {type:'wide', item:'months'}
Returns a pattern string to format and parse dates according to the client's user preferences.
Called on success getting pattern with a GlobalizationDatePattern object
Called on error getting pattern with a GlobalizationError object. The error's expected code is GlobalizationError.PATTERN_ERROR.
Optional format parameters. Default {formatLength:'short', selector:'date and time'}
Returns the first day of the week according to the client's user preferences and calendar.
Called on success with a day object, that should have a value property with a number value.
Called on error with a GlobalizationError object. The error's expected code is GlobalizationError.UNKNOWN_ERROR.
Get the string identifier for the client's current locale setting.
Called on success getting the locale identifier with a properties object, that should have a value property with a String value.
Called on error getting the locale identifier with a GlobalizationError object. The error's expected code is GlobalizationError.UNKNOWN_ERROR.
Returns a pattern string to format and parse numbers according to the client's user preferences.
Called on success getting pattern with a GlobalizationNumberPattern object
Called on error getting the language with a GlobalizationError object. The error's expected code is GlobalizationError.PATTERN_ERROR.
Get the string identifier for the client's current language.
Called on success getting the language with a properties object, that should have a value property with a String value.
Called on error getting the language with a GlobalizationError object. The error's expected code is GlobalizationError.UNKNOWN_ERROR.
Indicates whether daylight savings time is in effect for a given date using the client's time zone and calendar.
Date to check
Called on success with a properties object, that should have a dst property with a boolean value.
Called on error with a GlobalizationError object. The error's expected code is GlobalizationError.UNKNOWN_ERROR.
Returns a number formatted as a string according to the client's user preferences.
Number to format
Called on success with a result object, that should have a value property with a String value.
Called on error with a GlobalizationError object. The error's expected code is GlobalizationError.FORMATTING_ERROR.
Optional format parameters. Default: {type:'decimal'}
Parses a date formatted as a string, according to the client's user preferences and calendar using the time zone of the client, and returns the corresponding date object.
String to parse
Called on success with GlobalizationDate object
Called on error getting the language with a GlobalizationError object. The error's expected code is GlobalizationError.PARSING_ERROR.
Optional parse parameters. Default {formatLength:'short', selector:'date and time'}
Parses a number formatted as a string according to the client's user preferences and returns the corresponding number.
String to parse
Called on success with a result object, that should have a value property with a number value.
Called on error with a GlobalizationError object. The error's expected code is GlobalizationError.FORMATTING_ERROR.
Optional format parameters. Default: {type:'decimal'}