Sha256: 60432e871c2cd9a4d0464d81aaeab0095aecab6f2e9720c2b651d7225c9be9b2
Contents?: true
Size: 733 Bytes
Versions: 6
Compression:
Stored size: 733 Bytes
Contents
module Slices module I18n class Backend module Implementation include ::I18n::Backend::Base, ::I18n::Backend::Flatten # This method receives a locale, a data hash and options for storing translations. # Should be implemented def store_translations(locale, data, options = {}) raise NotImplementedError end def available_locales raise NotImplementedError end protected def lookup(locale, key, scope = [], options = {}) key = normalize_flat_keys(locale, key, scope, options[:separator]) Snippet.find_value_by_key("#{locale}.#{key}") end end include Implementation end end end
Version data entries
6 entries across 6 versions & 1 rubygems