Module: I18n::MissingTranslation::Base
- Defined in:
- lib/i18n_csv/i18n_csv.rb
Instance Method Summary collapse
Instance Method Details
#candidate_lookup ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/i18n_csv/i18n_csv.rb', line 29 def candidate_lookup translations = I18n.backend.send :translations locale = keys.first path = ((keys - [ locale ]).map { |k| k.to_s }).join('.') translations[locale][path] || keys.last.to_s end |
#html_message ⇒ Object
41 42 43 |
# File 'lib/i18n_csv/i18n_csv.rb', line 41 def candidate_lookup end |
#message ⇒ Object
37 38 39 |
# File 'lib/i18n_csv/i18n_csv.rb', line 37 def candidate_lookup end |