lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.2.21 vs lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.2.22
- old
+ new
@@ -7,10 +7,10 @@
locales = non_base_locales(opts[:locales])
if type
if type == :missing_from_base
keys_missing_from_base
else
- locales.map { |locale| send("keys_#{type}", locale) }.reduce(:+)
+ locales.map { |locale| send("keys_#{type}", locale) }.reduce(:+) || KeyGroup.new([])
end
else
missing_keys(type: :missing_from_base) +
missing_keys(type: :eq_base, locales: locales) +
missing_keys(type: :missing_from_locale, locales: locales)