Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/270
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Mar 30, 2024
1 parent 31ae24c commit 5184b3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/bonfire_common.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ config :bonfire_common, Bonfire.Common.Localise.Cldr,
default_locale: default_locale,
# locales that will be made available on top of those for which gettext localisation files are available
locales: ["fr", "en", "es"],
providers: [Cldr.Language, Cldr.DateTime, Cldr.Number, Cldr.Unit, Cldr.List, Cldr.Calendar],
providers: [
Cldr.Language,
Cldr.DateTime,
Cldr.Number,
Cldr.Unit,
Cldr.List,
Cldr.Calendar,
Cldr.Territory,
Cldr.LocaleDisplay
],
gettext: Bonfire.Common.Localise.Gettext,
# extra Gettex modules from dependencies not using the one from Bonfire.Common, so we can change their locale too
extra_gettext: [Timex.Gettext],
Expand Down
1 change: 1 addition & 0 deletions deps.hex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ex_cldr_plugs = "~> 1.2"
ex_cldr_dates_times = "~> 2.0"
ex_cldr_units = "~> 3.0"
ex_cldr_numbers = "~> 2.32"
ex_cldr_locale_display = "~> 1.1"
timex = "~> 3.7.8" # date/times
recase = "~> 0.7.0" # string recasing

Expand Down

0 comments on commit 5184b3d

Please sign in to comment.