module IceCube::I18n
Constants
- LOCALES_PATH
Public Class Methods
backend()
click to toggle source
# File lib/ice_cube/i18n.rb, line 12 def self.backend @backend ||= detect_backend! end
detect_backend!()
click to toggle source
# 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