Skip to content

Commit

Permalink
add synchronize call to after_initialize hook
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveranthony17 committed Nov 5, 2024
1 parent 60974db commit 9b1d919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/moirai/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Engine < ::Rails::Engine

config.after_initialize do
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::Moirai.new, I18n.backend)
Moirai::TranslationSync.new.synchronize
end

# TODO: how to do this without rewriting the entire method?
Expand Down

0 comments on commit 9b1d919

Please sign in to comment.