lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.2.9 vs lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.2.10
- old
+ new
@@ -1,21 +1,21 @@
module I18n::Tasks::MissingKeys
# @return Array missing keys, i.e. key that are in the code but are not in the base locale data
- def keys_missing_from_base
+ def keys_not_in_base
find_source_keys.reject { |key|
key_value?(key, base_locale) || pattern_key?(key) || ignore_key?(key, :missing)
}
end
- # @return Array keys missing value (but present in base)
- def keys_missing_value(locale)
+ # @return Array keys missing (nil or blank?) in locale but present in base
+ def keys_blank_in_locale(locale)
traverse_map_if data[base_locale] do |key, base_value|
key if !ignore_key?(key, :missing) && !key_value?(key, locale) && !key_value?(depluralize_key(key), locale)
end
end
# @return Array keys missing value (but present in base)
- def keys_where_value_eq_base(locale)
+ def keys_eq_base(locale)
traverse_map_if data[base_locale] do |key, base_value|
key if base_value == t(locale, key) && !ignore_key?(key, :eq_base, locale)
end
end
\ No newline at end of file