bonfire-app/flavours/classic/config/bonfire_common.exs
Mayel de Borniol 0ef85e77f9 auto-format
2022-09-12 16:34:14 +12:00

33 lines
1 KiB
Elixir
Executable file

import Config
default_locale = "en"
config :bonfire,
localisation_path: "priv/localisation"
config :bonfire_common,
otp_app: :bonfire
## 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,
# locales that will be made available on top of those for which gettext localisation files are available
locales: ["fr", "en", "es", "it", "vi"],
providers: [Cldr.Language],
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],
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