# content
@Bonfire@bonfire.cafe @mayel@bonfire.cafe ​ah, good news. I've just deployed 1.0.1, where I tried setting the COMPILE_ALL_LOCALES but then spotted it was overridden by the :prod flag regardless. My last attempt was to directly edit config/bonfire_common.exs with static values:

--- a/config/bonfire_common.exs


+++ b/config/bonfire_common.exs


@@ -4,8 +4,8 @@ default_locale = &quot;en&quot;





## Localisation &amp; internationalisation


# Only compile additional locales in prod or when explicitly requested


-compile_all_locales? =


- config_env() == :prod or System.get_env(&quot;COMPILE_ALL_LOCALES&quot;) in [&quot;true&quot;, &quot;1&quot;]


+compile_all_locales? = false


+# config_env() == :prod or System.get_env(&quot;COMPILE_ALL_LOCALES&quot;) in [&quot;true&quot;, &quot;1&quot;]





locales = if compile_all_locales?, do: [default_locale, &quot;fr&quot;, &quot;es&quot;, &quot;it&quot;], else: [default_locale]





@@ -18,7 +18,7 @@ config :bonfire_common,


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: locales,


+ locales: [],


providers: [


Cldr.Language,


Cldr.DateTime,


@@ -33,10 +33,10 @@ config :bonfire_common, Bonfire.Common.Localise.Cldr,


gettext: Bonfire.Common.Localise.Gettext,


extra_gettext: [Timex.Gettext],


data_dir: &quot;./priv/cldr&quot;,


- add_fallback_locales: compile_all_locales?,


+ add_fallback_locales: false,


# precompile_number_formats: [&quot;¤¤#,##0.##&quot;],


# precompile_transliterations: [{:latn, :arab}, {:thai, :latn}]


- force_locale_download: Mix.env() == :prod,


+ force_locale_download: false, # Mix.env() == :prod,


generate_docs: true

# source.content
[@Bonfire@bonfire.cafe](https://bonfire.cafe/pub/actors/Bonfire) [@mayel@bonfire.cafe](https://bonfire.cafe/pub/actors/mayel) ​ah, good news. I've just deployed 1.0.1, where I tried setting the `COMPILE_ALL_LOCALES` but then spotted it was overridden by the `:prod` flag regardless. My last attempt was to directly edit `config/bonfire_common.exs` with static values:

```
--- a/config/bonfire_common.exs
+++ b/config/bonfire_common.exs
@@ -4,8 +4,8 @@ default_locale = &quot;en&quot;

## Localisation &amp; internationalisation
# Only compile additional locales in prod or when explicitly requested
-compile_all_locales? =
- config_env() == :prod or System.get_env(&quot;COMPILE_ALL_LOCALES&quot;) in [&quot;true&quot;, &quot;1&quot;]
+compile_all_locales? = false
+# config_env() == :prod or System.get_env(&quot;COMPILE_ALL_LOCALES&quot;) in [&quot;true&quot;, &quot;1&quot;]

locales = if compile_all_locales?, do: [default_locale, &quot;fr&quot;, &quot;es&quot;, &quot;it&quot;], else: [default_locale]

@@ -18,7 +18,7 @@ config :bonfire_common,
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: locales,
+ locales: [],
providers: [
Cldr.Language,
Cldr.DateTime,
@@ -33,10 +33,10 @@ config :bonfire_common, Bonfire.Common.Localise.Cldr,
gettext: Bonfire.Common.Localise.Gettext,
extra_gettext: [Timex.Gettext],
data_dir: &quot;./priv/cldr&quot;,
- add_fallback_locales: compile_all_locales?,
+ add_fallback_locales: false,
# precompile_number_formats: [&quot;¤¤#,##0.##&quot;],
# precompile_transliterations: [{:latn, :arab}, {:thai, :latn}]
- force_locale_download: Mix.env() == :prod,
+ force_locale_download: false, # Mix.env() == :prod,
generate_docs: true
```