module I18n::Base

def locale_available?(locale)

Symbol, is in the list of available locales. Returns false otherwise.
Returns true when the passed locale, which can be either a String or a
def locale_available?(locale)
  I18n.config.available_locales_set.include?(locale)
end