CldrIntlService
The Internationalization service implemented by using
the CLDR Database via the @progress/kendo-intl
package.
Name | Type | Default | Description |
---|---|---|---|
localeId |
|
Gets or sets the current locale ID. |
Constructors
CldrIntlService
(localeId: string)
Creates a new instance of the service with the ID of the specified locale.
Note that the parts of the locale ID can be separated by either _
(underscore)
or -
(dash).
Parameters
localeId
string
The default locale ID.
Methods
dateFieldName | |||||||||
---|---|---|---|---|---|---|---|---|---|
Returns the date names from the current locale based on the option. The available
The available
| |||||||||
| |||||||||
|
dateFormatNames | |||||||||
---|---|---|---|---|---|---|---|---|---|
Returns a localized date field name based on specific dateFieldName options. The available type values are:
| |||||||||
| |||||||||
|
firstDay | ||||||
---|---|---|---|---|---|---|
Returns the first day index starting from Sunday. | ||||||
| ||||||
|
format | |||||||||
---|---|---|---|---|---|---|---|---|---|
Formats a string with placeholders such as
| |||||||||
| |||||||||
|
formatDate | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a | ||||||||||||
| ||||||||||||
|
formatNumber | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a | ||||||||||||
| ||||||||||||
|
notify |
---|
Notifies that the service was changed. |
numberSymbols | ||||||
---|---|---|---|---|---|---|
Returns the number symbols from the current locale based on the option. | ||||||
| ||||||
|
parseDate | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a string into a | ||||||||||||
| ||||||||||||
|
parseNumber | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a string into a | ||||||||||||
| ||||||||||||
|
splitDateFormat | |||||||||
---|---|---|---|---|---|---|---|---|---|
Splits the date format into objects containing information about each part of the pattern. | |||||||||
| |||||||||
|
toString | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Converts an object into a string based on the specified format. | ||||||||||||
| ||||||||||||
|
weekendRange | ||||||
---|---|---|---|---|---|---|
Returns the start and end index of the locale weekend starting from Sunday. | ||||||
| ||||||
|