CurrencyFormatter.locale
Property Description |
The locale of the currency formatter. |
Type |
string (read-only) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2021.1 |
Syntax
Important:
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/format/i18n Module Script Samples.
// Add additional code
...
var curFormatter = format.getCurrencyFormatter({
locale: 'en_US'
});
var theLocale = curFormatter.locale; // theLocale is 'en_US'
...
// Add additional code