Skip to content

Commit

Permalink
Fix broken i18n loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatson committed Apr 21, 2024
1 parent d627b15 commit febee48
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
8 changes: 5 additions & 3 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# Initialize the Rails application.
Rails.application.initialize!

# Wipe out default Rails & gem i18n.
I18n.load_path = Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
# Wipe out default gem i18n.
I18n.load_path = I18n.load_path.delete_if { |i| i =~ /gems/ }

# I18n.load_path = Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
# I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
4 changes: 0 additions & 4 deletions config/locales/events/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,3 @@ de:
delete: Entferne Volume
imported: "Importiertes Volume %{volume}"
restore: Wiederherstellung Volume
wordpress:
protect:
enable: "[%{service}] Enabling protect mode"
disable: "[%{service}] Disabling protect mode"
4 changes: 0 additions & 4 deletions config/locales/events/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,3 @@ en:
delete: Removing volume
imported: "Imported volume %{volume}"
restore: Performing volume restore
wordpress:
protect:
enable: "[%{service}] Enabling protect mode"
disable: "[%{service}] Disabling protect mode"
4 changes: 0 additions & 4 deletions config/locales/events/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,3 @@ fi:
delete: "Poistetaan tallennustila %{volume}"
imported: "Tuotu tallennustila %{volume}"
restore: Suoritetaan tallennustilan palautus
wordpress:
protect:
enable: "[%{service}] Enabling protect mode"
disable: "[%{service}] Disabling protect mode"
4 changes: 0 additions & 4 deletions config/locales/events/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,3 @@ fr:
delete: Removing volume
imported: "Imported volume %{volume}"
restore: Performing volume restore
wordpress:
protect:
enable: "[%{service}] Enabling protect mode"
disable: "[%{service}] Disabling protect mode"
4 changes: 0 additions & 4 deletions config/locales/events/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,3 @@ nl:
delete: Removing volume
imported: "Imported volume %{volume}"
restore: Performing volume restore
wordpress:
protect:
enable: "[%{service}] Enabling protect mode"
disable: "[%{service}] Disabling protect mode"

0 comments on commit febee48

Please sign in to comment.