about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-19 19:53:47 +0200
committerGitHub <noreply@github.com>2022-10-19 19:53:47 +0200
commitf7155becd058d3fde45d2ab548313e1a1f7575f9 (patch)
tree2822eacbe445e2933bb4fb572a3115567af0bf43 /config/initializers
parent7e62688a0e656d71b0358fa55d5f6e8f8103c297 (diff)
Fix config/locales-glitch not overriding translation strings (#1871)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/locale.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/initializers/locale.rb b/config/initializers/locale.rb
index fed182a71..b5664b0b0 100644
--- a/config/initializers/locale.rb
+++ b/config/initializers/locale.rb
@@ -1,7 +1,9 @@
 # frozen_string_literal: true
 
-I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names.{rb,yml}').to_s]
-I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names', '*.{rb,yml}').to_s]
-I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names.{rb,yml}').to_s]
-I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names', '*.{rb,yml}').to_s]
-I18n.load_path += Dir[Rails.root.join('config', 'locales-glitch', '*.{rb,yml}').to_s]
+Rails.application.configure do
+  I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names.{rb,yml}').to_s]
+  I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names', '*.{rb,yml}').to_s]
+  I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names.{rb,yml}').to_s]
+  I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names', '*.{rb,yml}').to_s]
+  I18n.load_path += Dir[Rails.root.join('config', 'locales-glitch', '*.{rb,yml}').to_s]
+end