Class | I18n::Config |
In: |
lib/active_support/vendor/i18n-0.4.1/i18n/config.rb
|
Parent: | Object |
Allow clients to register paths providing translation data sources. The backend defines acceptable sources.
E.g. the provided SimpleBackend accepts a list of paths to translation files which are either named *.rb and contain plain Ruby Hashes or are named *.yml and contain YAML data. So for the SimpleBackend clients may register translation files like this:
I18n.load_path << 'path/to/locale/en.yml'
The only configuration value that is not global and scoped to thread is :locale. It defaults to the default_locale.