lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.4.3 vs lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.4.4

- old
+ new

@@ -40,14 +40,10 @@ # @return [KeyGroup] keys missing (nil or blank?) in locale but present in base def keys_missing_from_locale(locale) return keys_missing_from_base if locale == base_locale @keys_missing_from_locale ||= {} @keys_missing_from_locale[locale] ||= begin - keys = data[base_locale].keys(root: false).map { |key, node| - key = depluralize_key(key, locale) - next if ignore_key?(key, :missing) || key_value?(key, locale) - key - }.compact.uniq + keys = missing_tree(locale).key_names.map { |key| depluralize_key(key, locale) }.uniq KeyGroup.new keys, type: :missing_from_locale, locale: locale end end # @return [KeyGroup] keys missing value (but present in base)