Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Ransack add :cs and :es to app available_locales #177
Since ransack gem includes locales for Czech and Spanish it's include automatically to your app
I think that we should have this files out of the gem (and keep only the english file) like https://github.com/plataformatec/devise or we need a proper configuration methods to set what locales we want to use. Otherwise we should introduce unnecessary locales that could break our application.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Add extra locales to
def set_locale I18n.locale = extract_locale_from_subdomain || I18n.default_locale end def extract_locale_from_subdomain parsed_locale = request.subdomains.first I18n.available_locales.include?(parsed_locale.to_sym) ? parsed_locale : nil end
Examples from http://guides.rubyonrails.org/i18n.html but it's the same situation if you use