From 9f593a36ad95075a9a4778ab173dc76ffe202d71 Mon Sep 17 00:00:00 2001 From: chr Date: Sun, 23 Jun 2019 15:50:16 -0700 Subject: Cybrespace locale --- app/controllers/concerns/localized.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/controllers/concerns') diff --git a/app/controllers/concerns/localized.rb b/app/controllers/concerns/localized.rb index fe1142f34..0d7af93f7 100644 --- a/app/controllers/concerns/localized.rb +++ b/app/controllers/concerns/localized.rb @@ -23,7 +23,12 @@ module Localized if ENV['DEFAULT_LOCALE'].present? I18n.default_locale else - request_locale || I18n.default_locale + case request_locale + when /en\b/, nil + I18n.default_locale + else + request_locale + end end end -- cgit