Module: IceCube::I18n
- Defined in:
- lib/ice_cube/i18n.rb
Constant Summary collapse
- LOCALES_PATH =
File.(File.join('..', '..', '..', 'config', 'locales'), __FILE__)
Class Method Summary collapse
Class Method Details
.backend ⇒ Object
12 13 14 |
# File 'lib/ice_cube/i18n.rb', line 12 def self.backend @backend ||= detect_backend! end |
.detect_backend! ⇒ Object
16 17 18 19 20 21 |
# File 'lib/ice_cube/i18n.rb', line 16 def self.detect_backend! ::I18n.load_path += Dir[File.join(LOCALES_PATH, '*.yml')] ::I18n rescue NameError NullI18n end |