instance method
lookup_format_data
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
lookup_format_data(locale, type)
No documentation comment.
Parameters
-
localereq -
typereq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb, line 77
def lookup_format_data(locale, type)
key = case type
when :date, :time, :datetime
:'calendars.gregorian'
else
:'numbers.symbols'
end
I18n.t(key, :locale => locale, :raise => true)
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb line 77
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::Cldr