bonfire-app/flavours/classic/config/bonfire_common.exs

33 lines
1 KiB
Elixir
Raw Normal View History

2020-12-05 18:33:09 +00:00
import Config
2022-06-23 07:11:32 +00:00
default_locale = "en"
config :bonfire,
localisation_path: "priv/localisation"
2020-12-05 18:33:09 +00:00
config :bonfire_common,
otp_app: :bonfire
2022-06-23 07:11:32 +00:00
## Localisation & internationalisation
# TODO: determine which keys can be set at runtime vs compile-time
config :bonfire_common, Bonfire.Common.Localise.Cldr,
default_locale: default_locale,
2022-09-12 04:34:14 +00:00
# locales that will be made available on top of those for which gettext localisation files are available
locales: ["fr", "en", "es", "it", "vi"],
2022-06-23 07:11:32 +00:00
providers: [Cldr.Language],
gettext: Bonfire.Common.Localise.Gettext,
2022-09-12 04:34:14 +00:00
# extra Gettex modules from dependencies not using the one from Bonfire.Common, so we can change their locale too
extra_gettext: [Timex.Gettext],
2022-06-23 07:11:32 +00:00
data_dir: "priv/cldr",
add_fallback_locales: true,
# precompile_number_formats: ["¤¤#,##0.##"],
# precompile_transliterations: [{:latn, :arab}, {:thai, :latn}]
force_locale_download: Mix.env() == :prod,
generate_docs: true
config :ex_cldr,
default_locale: default_locale,
default_backend: Bonfire.Common.Localise.Cldr,
json_library: Jason