New to KendoReactStart a free 30-day trial

A service which provides internationalization methods and is bound to a specific locale.

Definition

Package:@progress/kendo-react-intl

Properties

locale

string

The locale that will be used by the internationalization methods.

Methods

Returns a localized date field name based on specific dateFieldName options.

Parameters:optionsDateFieldNameOptions

The detailed configuration for the desired date field name.

Returns:

string

  • The localized date field name from the current locale based on the option.

Returns the day names from the current locale based on the option.

Parameters:optionsDateFormatNameOptions

The detailed configuration for the desired date format.

Returns:

any

  • The day names from the current locale based on the option.

Returns the first day index, starting from Sunday.

Returns:

number

  • The index of the first day of the week (0 == Sunday).

Formats a string with placeholders such as Total amount {0:c}.

Parameters:formatstring

The format string.

valuesany[]

One or more values to output in the format string placeholders.

Returns:

string

  • The formatted string.

Converts a Date object to a string based on the specified format. If no format is provided, the default short date format is used.

Parameters:valueDate

The date which will be formatted.

format?string | DateFormatOptions

The format string or options.

Returns:

string

  • The formatted date.

Converts a Number to a string based on the specified format.

Parameters:valuenumber

The number which will be formatted.

formatstring | NumberFormatOptions

The format string or options.

Returns:

string

  • The formatted number.

Returns the number symbols from the current locale.

Returns:

any

  • The number symbols from the current locale.

Converts a string to a Date object based on the specified format.

Parameters:valuestring

The string which will be converted.

format?string | DateFormatOptions | string[] | DateFormatOptions[]

The format strings or options.

Returns:

Date

  • The parsed date.

Converts a string to a Number.

Parameters:valuestring

The string which will be parsed.

format?string | NumberFormatOptions

The format string or options.

Returns:

number

  • The parsed number.

Splits the date format into objects which contain information about each part of the pattern.

Parameters:formatstring | DateFormatOptions

The format string or options.

Returns:

DateFormatPart[]

  • The date format parts.

Converts an object to a string based on the specified format.

Parameters:valueany

The value which will be formatted.

formatany

The format to use.

Returns:

string

  • The formatted object.