- A
- B
- D
- E
- L
Returns an array of locales for which translations are available. Unless you explicitely set the these through I18n.available_locales= the call will be delegated to the backend and memoized on the I18n module.
Sets the available locales.
Returns the current backend. Defaults to +Backend::Simple+.
Sets the current backend. Used to set a custom backend.
Returns the current default locale. Defaults to :'en'
Sets the current default locale. Used to set a custom default locale.
Returns the current default scope separator. Defaults to '.'
Sets the current default scope separator.
Return the current exception handler. Defaults to :default_exception_handler.
Sets the exception handler.
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'
Sets the load path instance. Custom implementations are expected to behave like a Ruby Array.
The only configuration value that is not global and scoped to thread is :locale. It defaults to the default_locale.