class method self.localize

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.localize(object, options = {})

Localizes certain objects, such as dates and numbers to local formatting.

Parameters

object req
options opt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb, line 168
    def localize(object, options = {})
      locale = options[:locale] || I18n.locale
      format = options[:format] || :default
      backend.localize(locale, object, format)
    end

Defined in activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb line 168 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n

Type at least 2 characters to search.

↑↓ navigate · open · esc close