Class: I18n::Backend::SequelBitemporal::Translation
- Inherits:
-
Object
- Object
- I18n::Backend::SequelBitemporal::Translation
- Extended by:
- Forwardable
- Defined in:
- lib/i18n/backend/sequel_bitemporal/translation.rb
Class Method Summary collapse
Class Method Details
.all_for_locale(locale) ⇒ Object
146 147 148 149 150 151 152 153 |
# File 'lib/i18n/backend/sequel_bitemporal/translation.rb', line 146 def all_for_locale(locale) self.locale(locale).with_current_version.select( :locale, :key, :value, :is_proc ).all end |
.available_locales ⇒ Object
142 143 144 |
# File 'lib/i18n/backend/sequel_bitemporal/translation.rb', line 142 def available_locales Translation.distinct.select(:locale).map { |t| t.locale.to_sym } end |