module RailsLocaleDetection::LocaleAccessors
Public Instance Methods
alternate_locales()
click to toggle source
# File lib/rails_locale_detection/locale_accessors.rb, line 3 def alternate_locales available_locales - [current_locale] end
available_locales()
click to toggle source
# File lib/rails_locale_detection/locale_accessors.rb, line 7 def available_locales I18n.available_locales end
current_locale()
click to toggle source
# File lib/rails_locale_detection/locale_accessors.rb, line 11 def current_locale I18n.locale end
current_locale=(locale)
click to toggle source
# File lib/rails_locale_detection/locale_accessors.rb, line 15 def current_locale=(locale) I18n.locale = locale end
default_locale()
click to toggle source
# File lib/rails_locale_detection/locale_accessors.rb, line 19 def default_locale I18n.default_locale end