IntlService
A service which provides internationalization methods and is bound to a specific locale.
Definition
Package:@progress/kendo-vue-intl
Methods
Returns a localized date field name based on specific dateFieldName options.
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.
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.
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 to a string based on the specified format.
If no format is provided, the default short date format is used.
The date which will be formatted.
format?string | DateFormatOptionsThe format string or options.
Returns:string
- The formatted date.
Converts a Number to a string based on the specified format.
The number which will be formatted.
formatstring | NumberFormatOptionsThe format string or options.
Returns:string
- The formatted number.
Returns the number symbols from the current locale.
any
- The number symbols from the current locale.
Converts a string to a Date object based on the specified format.
The string which will be converted.
format?string | string[] | DateFormatOptions | DateFormatOptions[]The format strings or options.
Returns:Date
- The parsed date.
Converts a string to a Number.
The string which will be parsed.
format?string | NumberFormatOptionsThe format string or options.
Returns:number
- The parsed number.
Splits the date format into objects which contain information about each part of the pattern.
The format string or options.
Returns:- The date format parts.
Converts an object to a string based on the specified format.
The value which will be formatted.
formatanyThe format to use.
Returns:string
- The formatted object.