app/views/rosetta/locales/translations/_navigation.html.erb in rosetta-rails-0.1.1 vs app/views/rosetta/locales/translations/_navigation.html.erb in rosetta-rails-0.2.0
- old
+ new
@@ -4,10 +4,10 @@
<%= tab_link_to "All", locale_translations_path(@locale) %>
<%= tab_link_to locale_translations_missing_index_path(@locale) do %>
Missing
<span class="ml-3 hidden md:inline-block rounded-full px-2.5 py-0.5 text-xs font-medium bg-gray-100 text-gray-900 group-[.active]:bg-indigo-100 group-[.active]:text-indigo-600">
- <%= Rosetta::TranslationKey.where.missing(:translation_in_current_locale).size %>
+ <%= Rosetta::TextEntry.where(locale: Rosetta::Locale.default_locale).missing_translation(@locale).size %>
</span>
<% end %>
</nav>
</div>
</div>