Skip to content

Commit ca09138

Browse files
committed
Define available_locales_set to not pollute the global one
In multi-threaded servers when Mission Control is requested before other pages in the host app. Fixes #229
1 parent 66f829f commit ca09138

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
class MissionControl::Jobs::I18nConfig < ::I18n::Config
2+
AVAILABLE_LOCALES = [ :en ]
3+
AVAILABLE_LOCALES_SET = [ :en, "en" ]
4+
DEFAULT_LOCALE = :en
5+
26
def available_locales
3-
[ :en ]
7+
AVAILABLE_LOCALES
8+
end
9+
10+
def available_locales_set
11+
AVAILABLE_LOCALES_SET
412
end
513

614
def default_locale
7-
:en
15+
DEFAULT_LOCALE
816
end
917
end

0 commit comments

Comments
 (0)