about summary refs log tree commit diff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authorchr <chr@cybre.space>2019-06-23 15:50:16 -0700
committerchr <chr@cybre.space>2021-03-01 21:31:50 -0800
commit9f593a36ad95075a9a4778ab173dc76ffe202d71 (patch)
tree72cb49ae15722f5ac88c9284a44cce74e415925f /app/controllers/concerns
parent633d175146d6acaf2cc4bfbfcfdee4c85ef20ed1 (diff)
Cybrespace locale
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/localized.rb7
1 files changed, 6 insertions, 1 deletions
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