app/models/gallifreyian/i18n_key.rb
# User Gallifreyian::Configuration.available_locales to add missing translations on this I18nKey
#
# @return [Array]     of Gallifreyian::Translation::I18nKey
#
User Gallifreyian::Configuration.available_locales to add missing translations on this I18nKey
User Gallifreyian :: Configuration . available_locales to add missing translations on this I18nKey
def available_translations
    missing_locales = Gallifreyian::Configuration.available_locales - translations.map(&:language)
    missing_locales.each do |locale|
      self.translations << Gallifreyian::Translation::I18nKey.new(language: locale)
    end
    self.translations.order_by({:language => :asc})
  end
def available_translations missing_locales = Gallifreyian :: Configuration . available_locales - translations . map ( & :language ) missing_locales . each do | locale | self . translations << Gallifreyian :: Translation :: I18nKey . new ( language : locale ) end self . translations . order_by ( { :language => :asc } ) end
User Gallifreyian::Configuration.available_locales to add missing translations on this I18nKey
User Gallifreyian :: Configuration . available_locales to add missing translations on this I18nKey
None
Array