class Autochthon::Backend::Redis

Public Instance Methods

all_for_locale(locale) click to toggle source
# File lib/autochthon/backend/redis.rb, line 9
def all_for_locale(locale)
  store.keys("#{locale}.*").inject({}) do |translations, key|
    main_key = key[(locale.size+1)..-1]
    translations.merge(main_key => translate(locale, main_key))
  end
end