instance method translate

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

translate(locale, key, options = {})

No documentation comment.

Parameters

locale req
key req
options opt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/metadata.rb, line 34
      def translate(locale, key, options = {})
        metadata = {
          :locale    => locale,
          :key       => key,
          :scope     => options[:scope],
          :default   => options[:default],
          :separator => options[:separator],
          :values    => options.reject { |name, value| Base::RESERVED_KEYS.include?(name) }
        }
        with_metadata(metadata) { super }
      end

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/metadata.rb line 34 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::Metadata

Type at least 2 characters to search.

↑↓ navigate · open · esc close