class method self.normalize_keys

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

self.normalize_keys(locale, key, scope, separator = nil)

Merges the given locale, key and scope into a single array of keys. Splits keys that contain dots into multiple keys. Makes sure all keys are Symbols.

Parameters

locale req
key req
scope req
separator opt = nil
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n.rb, line 250
    def normalize_keys(locale, key, scope, separator = nil)
      separator ||= I18n.default_separator

      keys = []
      keys.concat normalize_key(locale, separator)
      keys.concat normalize_key(scope, separator)
      keys.concat normalize_key(key, separator)
      keys
    end

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

Defined in I18n

Type at least 2 characters to search.

↑↓ navigate · open · esc close