All Components

CldrIntlService

The Internationalization service implemented by using the CLDR Database via the @telerik/kendo-intl package.

localeId string

The current locale ID.

Methods

dateFormatNames

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

Parameters

options DateFormatNameOptions

Detailed configuration for the desired date format.

localeId? string

The locale ID to use in place of the default one. Optional.

Returns

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

firstDay

Returns the first day index starting from Sunday.

Parameters

localeId? string

The locale ID. Defaults to the current locale ID.

Returns

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

format

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

Parameters

format string

The format string.

values any[]

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

Returns

string The formatted string.

formatDate

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

value Date

The date to format.

format? String | DateFormatOptions

The format string or options.

localeId? string

The locale ID to use in place of the default one. Optional.

Returns

string The formatted date.

formatNumber

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

Parameters

value number

The number to format.

format string | NumberFormatOptions

The format string or options.

localeId? string

The locale ID to use in place of the default one. Optional.

Returns

string The formatted number.

parseDate

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

Parameters

value string

The string to convert.

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

The format strings or options.

localeId? string

The locale ID to use in place of the default one. Optional.

Returns

Date The parsed date.

parseNumber

Converts a string to a Number.

Parameters

value string

The string to convert.

format? string | NumberFormatOptions

The format string or options.

localeId? string

The locale ID to use in place of the default one. Optional.

Returns

number The parsed number.

toString

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

Parameters

value any

The value to format.

format string | any

The format to use.

localeId? string

The locale ID to use in place of the default one. Optional.

Returns

string The formatted object.

In this article