diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-10-19 22:08:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 22:08:10 +0200 |
commit | 1e772c984b4681f6c036209b45dfa94b38b6ce83 (patch) | |
tree | 28dc45275709bc8429bdafa57724a8144bfb9484 /config/initializers | |
parent | f7155becd058d3fde45d2ab548313e1a1f7575f9 (diff) |
Actually fix config/locales-glitch not overriding translation strings (#1872)
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/locale.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/initializers/locale.rb b/config/initializers/locale.rb index b5664b0b0..4bcb1854c 100644 --- a/config/initializers/locale.rb +++ b/config/initializers/locale.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true 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] + config.i18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names.{rb,yml}').to_s] + config.i18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names', '*.{rb,yml}').to_s] + config.i18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names.{rb,yml}').to_s] + config.i18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names', '*.{rb,yml}').to_s] + config.i18n.load_path += Dir[Rails.root.join('config', 'locales-glitch', '*.{rb,yml}').to_s] end |