module I18n::Backend::Simple::Implementation
Public Instance Methods
available_translations()
click to toggle source
Extend the Simple
backend with a custom ‘available_translations` method returning a combined hash with all translations from this backend
# File lib/exvo_globalize/backend/simple.rb, line 8 def available_translations # simple backend is lazy loaded (woken up by first I18n.t() call) # wake it up if it's still sleeping send(:init_translations) unless initialized? # nested Hash with all translations send(:translations) end