Class: I18n::Backend::Simple

Inherits:
Object
  • Object
show all
Includes:
Implementation
Defined in:
lib/i18n/backend/simple.rb

Overview

A simple backend that reads translations from YAML files and stores them in an in-memory hash. Relies on the Base backend.

The implementation is provided by a Implementation module allowing to easily extend Simple backend’s behavior by including modules. E.g.:

module I18n::Backend::Pluralization
  def pluralize(*args)
    # extended pluralization logic
    super
  end
end

I18n::Backend::Simple.include(I18n::Backend::Pluralization)

Direct Known Subclasses

LazyLoadable

Defined Under Namespace

Modules: Implementation

Constant Summary

Constants included from Implementation

Implementation::MUTEX

Constants included from Transliterator

Transliterator::DEFAULT_REPLACEMENT_CHAR

Method Summary

Methods included from Implementation

#available_locales, #eager_load!, #initialized?, #reload!, #store_translations, #translations

Methods included from Base

#available_locales, #eager_load!, #exists?, #load_translations, #localize, #reload!, #store_translations, #translate

Methods included from Transliterator

get, #transliterate