lib/i18n_docs/missing_keys_finder.rb
def key_exists?(key, locale)
      I18n.locale = locale
      I18n.translate(key, raise: true)
      return true
    rescue I18n::MissingInterpolationArgument
      return true
    rescue I18n::MissingTranslationData
      return false
    end
# Returns true if key exists in the given locale
Returns true if key exists in the given locale
Returns true if key exists in the given locale
def key_exists?(key, locale)
      I18n.locale = locale
      I18n.translate(key, raise: true)
      return true
    rescue I18n::MissingInterpolationArgument
      return true
    rescue I18n::MissingTranslationData
      return false
    end
def key_exists? ( key , locale ) I18n . locale = locale I18n . translate ( key , raise : true ) return true rescue I18n :: MissingInterpolationArgument return true rescue I18n :: MissingTranslationData return false end
Returns true if key exists in the given locale
Returns true if key exists in the given locale
key
locale