Module: Localer::Rails
- Defined in:
- lib/localer/rails.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.connect! ⇒ Object
6 7 8 9 10 11 |
# File 'lib/localer/rails.rb', line 6 def connect! require File.("config/environment", Localer.config.app_path) true rescue LoadError false end |
.translations ⇒ Object
13 14 15 16 17 18 |
# File 'lib/localer/rails.rb', line 13 def translations return {} unless connect! I18n.backend.send(:init_translations) I18n.backend.send(:translations) end |