32 lines
697 B
JSON
32 lines
697 B
JSON
{
|
|
"expression": [
|
|
"number-format",
|
|
123456.789,
|
|
{
|
|
"locale": ["get", "locale"],
|
|
"currency": ["get", "currency"]
|
|
}
|
|
],
|
|
"inputs": [
|
|
[{}, {"properties": {"locale": "en-US", "currency": "JPY"}}],
|
|
[{}, {"properties": {"locale": "en-US", "currency": "EUR"}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "string"
|
|
},
|
|
"outputs": ["¥123,457", "€123,456.79"],
|
|
"serialized": [
|
|
"number-format",
|
|
123456.789,
|
|
{
|
|
"locale": ["string", ["get", "locale"]],
|
|
"currency": ["string", ["get", "currency"]]
|
|
}
|
|
]
|
|
}
|
|
}
|