instance method
localize
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
localize(locale, object, format = :default, options = {})
No documentation comment.
Parameters
-
localereq -
objectreq -
formatopt = :default -
optionsopt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb, line 9
def localize(locale, object, format = :default, options = {})
options[:as] ||= detect_type(object, options)
send(:"format_#{options[:as]}", locale, object, format, options)
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb line 9
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::Cldr