<%= t(".page_heading") %>

<% @languages.each do |language| %> <% works_count = estimate_number(@works_counts[language.short] || 0) %> <% if language == Language.default %>
<%= language.name %> <%= t(".language_code_format_html", code: content_tag(:abbr, language.short)) %>
<%= link_to t(".works_count", count: works_count, formatted_count: number_with_delimiter(works_count)), works_path %>
<% else %>
<%= link_to language.name, language, lang: language.short %> <%= t(".language_code_format_html", code: content_tag(:abbr, language.short)) %>
<%= link_to t(".works_count", count: works_count, formatted_count: number_with_delimiter(works_count)), language_works_path(language) %> <% if policy(Language).edit? %>

<%= link_to t(".navigation.edit"), edit_language_path(language) %>

<% end %>
<% end %> <% end %>