Fixed i18n redirection in prod

This commit is contained in:
Godwin 2016-06-29 16:34:52 -07:00
parent 2b4532c066
commit 0e5c8e23bd
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,8 @@ class ApplicationController < LinguaFrancaApplicationController
@alt_lang_urls[locale] = view_context.url_for_locale(locale) # don't show the current locale
end
xxx
# call the base method to detect the language
super
end

View File

@ -100,5 +100,4 @@ BikeBike::Application.configure do
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
I18n.config.language_detection_method = I18n::Config::DETECT_LANGUAGE_FROM_SUBDOMAIN
I18n.config.host_locale_regex = /^preview\-([a-z]{2})\.bikebike\.org$/
end