summaryrefslogtreecommitdiff
path: root/Meta/check-debug-flags.sh
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-11-12 13:11:30 -0500
committerLinus Groh <mail@linusgroh.de>2021-11-13 11:52:45 +0000
commit39e031c4ddc14f2aeecddf3dbf300603b491ab9f (patch)
treedb67096683eef96f27fd6ce4d39ecabcba64eb53 /Meta/check-debug-flags.sh
parent6cfd63e5bd6c15449e5a4c3f7a42674cea8a362a (diff)
downloadserenity-39e031c4ddc14f2aeecddf3dbf300603b491ab9f.zip
LibJS+LibUnicode: Generate all styles of currency localizations
Currently, LibUnicode is only parsing and generating the "long" style of currency display names. However, the CLDR contains "short" and "narrow" forms as well that need to be handled. Parse these, and update LibJS to actually respect the "style" option provided by the user for displaying currencies with Intl.DisplayNames. Note: There are some discrepencies between the engines on how style is handled. In particular, running: new Intl.DisplayNames('en', {type:'currency', style:'narrow'}).of('usd') Gives: SpiderMoney: "USD" V8: "US Dollar" LibJS: "$" And running: new Intl.DisplayNames('en', {type:'currency', style:'short'}).of('usd') Gives: SpiderMonkey: "$" V8: "US Dollar" LibJS: "$" My best guess is V8 isn't handling style, and just returning the long form (which is what LibJS did before this commit). And SpiderMoney can handle some styles, but if they don't have a value for the requested style, they fall back to the canonicalized code passed into of().
Diffstat (limited to 'Meta/check-debug-flags.sh')
0 files changed, 0 insertions, 0 deletions