CLDR JSON data does not preserve priority ordering of currency data
General
Trac Info
General
Trac Info
Description
Attachments
1
- 07 Mar 2025, 06:41 PM
0% Done
Activity
Show:
Shane Carr March 9, 2025 at 4:34 AM
Shane Carr
March 9, 2025 at 4:34 AM
I verify from spot-checking that the currencyData.json in CLDR JSON 47 BETA2 has the currencies sorted in reverse order of their "_to" date.
Steven R. Loomis March 7, 2025 at 6:41 PM
Steven R. Loomis
March 7, 2025 at 6:41 PM
Looks like there isn’t a beta2 generation of cldr-json .. here is a snapshot and the entire flie.
"AD": [
{
"EUR": {
"_from": "1999-01-01"
}
},
{
"ESP": {
"_from": "1873-01-01",
"_to": "2002-02-28"
}
},
{
"FRF": {
"_from": "1960-01-01",
"_to": "2002-02-17"
}
},
{
"ADP": {
"_from": "1936-01-01",
"_to": "2001-12-31"
}
}
],
"BT": [
{
"BTN": {
"_from": "1974-04-16"
}
},
{
"INR": {
"_from": "1907-01-01"
}
}
],
Shane Carr March 6, 2025 at 9:58 PM
Shane Carr
March 6, 2025 at 9:58 PM
The currencyData.json in CLDR 47 doesn’t appear to be ordered:
"AD": [
{
"ADP": {
"_from": "1936-01-01",
"_to": "2001-12-31"
}
},
{
"ESP": {
"_from": "1873-01-01",
"_to": "2002-02-28"
}
},
{
"EUR": {
"_from": "1999-01-01"
}
},
{
"FRF": {
"_from": "1960-01-01",
"_to": "2002-02-17"
}
}
],
Goun Lee February 10, 2025 at 7:53 AM
Goun Lee
February 10, 2025 at 7:53 AM
Thank you for the update. I now clearly understand that when the value of _to is missing, I will receive the most recent data in the currently used currency. I will check for changes in the next release version.
Steven R. Loomis February 6, 2025 at 5:50 PM
Steven R. Loomis
February 6, 2025 at 5:50 PM
DTD change: supplemental currency is ordered.
Fixed
Details
Details
Labels
Priority
Fix versions
Assignee
Steven R. Loomis
Steven R. LoomisReviewer
Shane Carr
Shane CarrReporter
Goun Lee
Goun LeeCreated November 27, 2024 at 2:08 AM
Updated March 9, 2025 at 4:34 AM
Resolved March 9, 2025 at 4:34 AM
I have a question regarding the currency values for the NA region in CLDR 46. The current official currency is the NAD (Namibian Dollar).
then, it seems that there is no corresponding _to value for the existing information regarding the ZAR (South African Rand). Shouldn't there be one like others? For the same reason, I think BT (Bhutan)'s INR and LS(Lesotho)'s 'ZAR' should have '_to' value as well.
If a country allows more than one currency at the sametime, it would be great if the CLDR could specify a default one.
If I am misunderstanding, please correct me.
cldr-core/supplementa/currencyData.json
"BT": [ { "INR": { "_from": "1907-01-01" } }, { "BTN": { "_from": "1974-04-16" } } ], "LS": [ { "ZAR": { "_from": "1961-02-14" } }, { "LSL": { "_from": "1980-01-22" } } ], "NA": [ { "ZAR": { "_from": "1961-02-14" } }, { "NAD": { "_from": "1993-01-01" } } ],
Thank you,
Goun