Return: string
Table of contents
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
s |
undefined
|
|
options |
undefined
|
|
multilang |
undefined
|
|
packageId |
undefined
|
METHOD | RETURN | DESCRIPTION |
---|---|---|
bindToPackage (packageId) | function
|
Creates a localization function bound to the specified package ID |
formatCurrency (value, currency) | The method that transforms currency in accordance with the current locale | |
formatDate (date) | The method that transforms date in accordance with the current locale | |
formatDatetime (date) | The method that transforms date and time in accordance with the current locale | |
formatNum (value) | The method that transforms number in accordance with the current locale | |
formatTime (date) | The method that transforms time in accordance with the current locale |
Creates a localization function bound to the specified package ID.
Return: function
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
packageId |
String
|
Package APS ID. |
The method that transforms currency in accordance with the current locale.
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
value |
undefined
|
Number. |
currency |
undefined
|
Currency in ISO 4217 code, e.g. USD. |
The method that transforms date in accordance with the current locale.
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
date |
undefined
|
Date value. String or Date. |
The method that transforms date and time in accordance with the current locale.
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
date |
undefined
|
Date value. String or Date. |
The method that transforms number in accordance with the current locale.
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
value |
undefined
|
Number. |
The method that transforms time in accordance with the current locale.
ARGUMENT | TYPE | DESCRIPTION |
---|---|---|
date |
undefined
|
Date value. String or Date. |