class I18n::Backend::LazyLoadable

def available_locales

Parse the load path and extract all locales.
def available_locales
  if lazy_load?
    I18n.load_path.map { |path| LocaleExtractor.locale_from_path(path) }.uniq
  else
    super
  end
end