IntlService
Represents the abstract base class for the Kendo UI for Angular Internationalization service. Provides methods for formatting and parsing dates, numbers, and strings according to the current locale.
Extend this class to implement custom internationalization logic or use the default CLDR-based implementation.
Definition
Package:@progress/kendo-angular-intl
Methods
Returns a localized date field name based on specific dateFieldName options.
Detailed configuration for the desired date field name.
localeId?stringThe locale ID to use (optional). If not specified, the "en" locale ID is used.
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.
Detailed configuration for the desired date format.
localeId?stringThe locale ID to use in place of the default (optional).
Returns:any
The day names from the current locale based on the option.
Returns the first day index starting from Sunday.
The locale ID (optional). Defaults to the current locale ID.
Returns:number
The index of the first day of the week (0 == Sunday).
Formats a string with placeholders such as
Total amount {0:c}.
The format string.
valuesany[]One or more values to output in the format string placeholders.
Returns:string
The formatted string.
Converts a Date object into a string based on the specified format
(see example).
If no format is provided, the default short date format is used.
The date to format.
format?string | DateFormatOptionsThe format string or options (optional).
localeId?stringThe locale ID to use in place of the default (optional).
Returns:string
The formatted date as a string.
Converts a Number into a string based on the specified format.
The number to format.
formatstring | NumberFormatOptionsThe format string or options.
localeId?stringThe locale ID to use in place of the default (optional).
Returns:string
The formatted number as a string.
Specifies that the service was changed.
Returns the number symbols from the current locale based on the option.
The locale ID to use in place of the default one (optional).
Returns:any
The number symbols from the current locale.
Converts a string into a Date object based on the specified format.
The string to convert.
format?string | DateFormatOptions | string[] | DateFormatOptions[]The format strings or options (optional).
localeId?stringThe locale ID to use in place of the default (optional).
Returns:Date
The parsed date.
Converts a string into a Number.
The string to convert.
format?string | NumberFormatOptionsThe format string or options (optional).
localeId?stringThe locale ID to use in place of the default (optional).
Returns:number
The parsed number.
Splits the date format into objects containing information about each part of the pattern.
The format string or options.
localeId?stringThe locale ID to use (optional). If not specified, the "en" locale ID is used.
The date format parts.
Converts an object into a string based on the specified format.
The value to format.
formatanyThe format to use.
localeId?stringThe locale ID to use in place of the default (optional).
Returns:string
The formatted object as a string.
Returns the start and end index of the locale weekend starting from Sunday.
The locale ID (optional). Defaults to the current locale ID.
Returns:DayRange
The start and end index of the locale weekend (0 == Sunday).