From b3760f8360abdc36ccee83b41541ddef5857dd02 Mon Sep 17 00:00:00 2001 From: Harrison Hassig Date: Sun, 30 Jun 2024 21:15:45 +0200 Subject: [PATCH 1/2] change default locales to en it bg and el, to update on production db organization later --- config/initializers/decidim.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/decidim.rb b/config/initializers/decidim.rb index b8a0806..cd318e7 100644 --- a/config/initializers/decidim.rb +++ b/config/initializers/decidim.rb @@ -14,7 +14,7 @@ # of languages will be equal or a subset of the list in this file. # config.available_locales = Rails.application.secrets.decidim[:available_locales].presence || [:en] # Or block set it up manually and prevent ENV manipulation: - config.available_locales = %w(en ca es) + config.available_locales = %w(en it bg el) # Sets the default locale for new organizations. When creating a new # organization from the System area, system admins will be able to overwrite From 5197ca264932f48041fec0b53a2f20491c8a8663 Mon Sep 17 00:00:00 2001 From: Harrison Hassig Date: Mon, 1 Jul 2024 09:40:42 +0200 Subject: [PATCH 2/2] Default locales to env variable instead of hard coded --- config/initializers/decidim.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/decidim.rb b/config/initializers/decidim.rb index cd318e7..89c7116 100644 --- a/config/initializers/decidim.rb +++ b/config/initializers/decidim.rb @@ -14,7 +14,7 @@ # of languages will be equal or a subset of the list in this file. # config.available_locales = Rails.application.secrets.decidim[:available_locales].presence || [:en] # Or block set it up manually and prevent ENV manipulation: - config.available_locales = %w(en it bg el) + config.available_locales = Rails.application.secrets.decidim[:available_locales].presence || [:en] # Sets the default locale for new organizations. When creating a new # organization from the System area, system admins will be able to overwrite