module Refinery::I18n
Attributes
built_in_locales[RW]
Public Class Methods
current_frontend_locale()
click to toggle source
# File lib/refinery/i18n.rb, line 45 def current_frontend_locale if Mobility.locale.present? && Mobility.locale.to_s != config.default_frontend_locale.to_s Mobility.locale elsif config.default_frontend_locale.present? config.default_frontend_locale else ::I18n.locale end end
frontend_locales()
click to toggle source
# File lib/refinery/i18n/configuration.rb, line 17 def self.frontend_locales config.frontend_locales.select do |locale| config.locales.keys.map(&:to_s).include?(locale.to_s) end end
has_locale?(locale)
click to toggle source
# File lib/refinery/i18n.rb, line 59 def has_locale?(locale) config.locales.has_key?(locale.try(:to_sym)) end
url_filter_enabled?()
click to toggle source
# File lib/refinery/i18n.rb, line 55 def url_filter_enabled? config.url_filter_enabled end