class method
self.localize
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.localize(object, options = {})
Localizes certain objects, such as dates and numbers to local formatting.
Parameters
-
objectreq -
optionsopt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb, line 228
def localize(object, options = {})
locale = options.delete(:locale) || config.locale
format = options.delete(:format) || :default
config.backend.localize(locale, object, format, options)
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb line 228
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n