lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.7.12 vs lib/i18n/tasks/missing_keys.rb in i18n-tasks-0.7.13

- old
+ new

@@ -67,13 +67,15 @@ # 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, compared_to) }.set_root_key!(locale, type: :missing_diff).keys { |_key, node| + # change path and locale to base + data = {locale: locale, missing_diff_locale: node.data[:locale]} 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 + data[:path] = LocalePathname.replace_locale(node.data[:path], node.data[:locale], locale) end + node.data.update data } end # keys used in the code missing translations in locale def missing_used_tree(locale)