Class | I18n::Backend::Simple |
In: |
lib/active_support/vendor/i18n-0.4.1/i18n/backend/simple.rb
|
Parent: | Object |
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.send(:include, I18n::Backend::Pluralization)