Localization utils.
Methods
(static) getLocale() → {string}
Gets the current value of the default locale.
- Source:
Returns:
- Type:
-
string
Returns the current value of the default locale.
(static) getMonthByName(name) → {number}
Gets month number by month name.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
The month name. |
Returns:
- Type:
-
number
Returns month number.
(static) getMonthName(dateopt, nullable) → {string}
Gets locale month name.
- Source:
- See:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
date |
Date
|
<optional> <nullable> |
Optional date object, defaults is current date. |
Returns:
- Type:
-
string
Returns month name.
(static) getMonthNames() → (non-null) {Array.<string>}
Gets locale month names.
- Source:
- See:
Returns:
- Type:
-
Array.<string>
Returns month names.
(static) getWeekNames() → (non-null) {Array.<string>}
Gets locale week names.
- Source:
- See:
Returns:
- Type:
-
Array.<string>
Returns week names.