Sha256: edc709dcbf5a15895deede99c73512ef0351c9cd6e1e090be72725c6e3ef88d2
Contents?: true
Size: 592 Bytes
Versions: 9
Compression:
Stored size: 592 Bytes
Contents
module I18n module Backend class Simple module Implementation # Extend the Simple backend with a custom `available_translations` method # returning a combined hash with all translations from this backend 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 end include Implementation end end end
Version data entries
9 entries across 9 versions & 1 rubygems