Skip to content

Commit cb81c47

Browse files
committed
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 cb81c47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mission_control/jobs/i18n_config.rb

Lines changed: 4 additions & 0 deletions
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)