Module Translatable
In: lib/translatable.rb

Methods

Public Instance methods

[Source]

   # File lib/translatable.rb, line 2
2:   def for_locale(locale, exp_locale = nil)
3:     locale = exp_locale if exp_locale
4:     if locale && locale != Constants::Locales::DEFAULT && translation = translations.find_by_locale(locale)
5:       translation.value
6:     else
7:       name
8:     end
9:   end

[Validate]