Closed gazzer82 closed 2 years ago
Thanks for the report and sorry for the inconvenience. This definitely a bug. CLDR prefers bcp47 locale names but ex_cldr
is intended to support both posix formatted (with underscores) and bcp47 (with dashes). The bug here is that it is not correctly doing so for :default_locale
.
If you change the _
in en_GB
to en-GB
it will compile fine.
I'll fix the bug and publish a release in the next few hours.
I have published ex_cldr version 2.25.0 which fixes this issues. Please run mix deps.update ex_cldr
in your project. The changelog entry reads:
en_GB
) as apposed to BCP47 form (ie en-GB
). In fixing this bug, forming the normalised list of configured locales is now also standarised. Thanks to @gazzer82 for the report. Closes #165Cldr.Gettext.Plural
allowing the creation of gettext plural forms modules.Thanks for the support and collaboration!
Yup all working fine now, thanks so much for sorting so quickly, Merry Christmas!
I am trying to set a locale options, as well as the default locale to en_GB, but I get the following error when starting up the Phoenix project.
ex_cldr version 2.24.2
Here's my config:
defmodule Unipix.Cldr do use Cldr, locales: ["en_GB"], default_locale: "en_GB", providers: [Cldr.Number, Money] end
Any pointers on where I'm going wrong here, apologies if it's something obvious!