Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d23d5d4

Browse files
committedDec 4, 2024·
Set default_locale for custom I18n config
Otherwise, the `with_locale` block will try to set back any locale set by the host app, which might or might not be :en, leading to an `I18n::InvalidLocale` error. Addresses #219.
1 parent b248534 commit d23d5d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lib/mission_control/jobs/i18n_config.rb

+4
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ class MissionControl::Jobs::I18nConfig < ::I18n::Config
22
def available_locales
33
[ :en ]
44
end
5+
6+
def default_locale
7+
:en
8+
end
59
end

0 commit comments

Comments
 (0)
Please sign in to comment.