lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.7.4 vs lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.7.5
- old
+ new
@@ -65,10 +65,10 @@
end
# keys present in compared_to, but not in locale
def missing_diff_tree(locale, compared_to = base_locale)
data[compared_to].select_keys { |key, _node|
- locale_key_missing? locale, depluralize_key(key, locale)
+ locale_key_missing? locale, depluralize_key(key, compared_to)
}.set_root_key!(locale, type: :missing_diff).keys { |_key, node|
if node.data.key?(:path)
# change path and locale to base
node.data.update path: LocalePathname.replace_locale(node.data[:path], node.data[:locale], locale), locale: locale
end