Method: Translates::FallbacksPlugin#read

Defined in:
lib/translates/fallbacks_plugin.rb

#read(locale) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/translates/fallbacks_plugin.rb', line 3

def read(locale)
  fallback_locales(locale).each do |locale|
    value = super(locale)
    return value if present?(value)
  end
  nil
end