i18n: Use plurals for tokens/replies/unseen notifications

This commit is contained in:
Samantaz Fox
2022-01-05 02:42:49 +01:00
parent 5bb2cb7d71
commit 37c953e633
15 changed files with 60 additions and 152 deletions

View File

@@ -24,7 +24,7 @@
</div>
<center>
<%= translate(locale, "`x` unseen notifications", "#{notifications.size}") %>
<%= translate_count(locale, "subscriptions_unseen_notifs_count", notifications.size) %>
</center>
<% if !notifications.empty? %>

View File

@@ -5,7 +5,7 @@
<div class="pure-g h-box">
<div class="pure-u-1-3">
<h3>
<%= translate(locale, "`x` tokens", %(<span id="count">#{tokens.size}</span>)) %>
<%= translate_count(locale, "tokens_count", tokens.size, NumberFormatting::HtmlSpan) %>
</h3>
</div>
<div class="pure-u-1-3"></div>