New to Kendo UI for Vue? Start a free 30-day trial
A service which provides internationalization methods
and is bound to a specific locale.
(locale: string)
Creates a new instance of the internationalization service.
string
The locale that will be used by the internationalization methods.
|
|
|---|
|
Returns a localized date field name based on specific dateFieldName options.
|
|
|
| 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.
|
|
|
| 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 | | |
|---|
|
format
|
string
|
The format string.
| |
values
|
any[]
|
One or more values to output in the format string placeholders.
|
|
|
|
|
|
|---|
|
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 which will be formatted.
| |
format?
|
string | DateFormatOptions
|
The format string or options.
|
|
|
|
|
|
|---|
|
Converts a Number to a string based on the specified format.
|
| Parameters | | |
|---|
|
value
|
number
|
The number which will be formatted.
| |
format
|
string | NumberFormatOptions
|
The format string or options.
|
|
|
|
|
|
|---|
|
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.
|
|
|
|
|
|
|
|---|
|
Converts a string to a Number.
|
| Parameters | | |
|---|
|
value
|
string
|
The string which will be parsed.
| |
format?
|
string | NumberFormatOptions
|
The format string or options.
|
|
|
|
|
|
|---|
|
Splits the date format into objects which contain
information about each part of the pattern.
|
|
|
|
|
|
|
|---|
|
Converts an object to a string based on the specified format.
|
| Parameters | | |
|---|
|
value
|
any
|
The value which will be formatted.
| |
format
|
any
|
The format to use.
|
|
|
|