rust-i18n
rust-i18n copied to clipboard
Are there any plans to implement pluralization like rails?
Such as:
# config/locales/en.yml
en:
notification:
one: You have 1 notification
other: You have %{count} notifications
#app/views/notifications/index.html.erb
<%= t("notification", count: current_user.notifications.count) %>
From watching the tests and doing some tests myself I cant see that, this library is doing like the the above?
As I know, the pluralization support in Rails that not a I18n feature, it a ActiveSupport feature to do text convert.
https://api.rubyonrails.org/classes/ActiveSupport/Inflector.html
If you have any link referenced for how to arrive this, please noted me.