Closed muirdm closed 8 years ago
Hey @muirrn, thanks for the pull request. As you noted, I probably won't be able to accept this PR, but I do have one of my own in-flight for updating to CLDR v29. In other words, currency symbols should be updated in the near future :)
Cool, thanks. I'll open a separate PR for the localized currency formatting fix (#2 in the PR comment).
My goal was to make
1337.localize(:"en-AU").to_currency.to_s(:currency => "USD", :use_cldr_symbol => true)
yield "USD1337.00", not "$1337.00" (Australia uses "$" for AUD, not USD). I had to do two things:DataReader#format_number
to pass number's locale to the formatter so the currency formatter could fetch the localized currency (was defaulting to "en").I see other issues/PRs related to trying to update to CLDR v29, but I'm not clear on what exactly is blocking the upgrade in terms of breaking existing functionality. I updated to v29 at least for the "update" rake tasks that worked, and I blindly updated failing tests assuming they were just from improved entries in the CLDR database. I expect this PR can't be accepted for whatever reason, but I at least wanted to get the currency formatting fix out there.