instance method store_translations

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

store_translations(locale, data, options = {})

Stores translations for the given locale in memory. This uses a deep merge for the translations hash, so existing translations will be overwritten by new ones only at the deepest level of the hash.

Parameters

locale req
data req
options opt = {}
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/simple.rb, line 31
        def store_translations(locale, data, options = {})
          locale = locale.to_sym
          translations[locale] ||= {}
          data = data.deep_symbolize_keys
          translations[locale].deep_merge!(data)
        end

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

Defined in I18n::Backend::Simple::Implementation

Type at least 2 characters to search.

↑↓ navigate · open · esc close