instance method
load_path
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
load_path()
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'
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/config.rb, line 74
def load_path
@@load_path ||= []
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/config.rb line 74
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Config