rust-i18n icon indicating copy to clipboard operation
rust-i18n copied to clipboard

Are there any plans to implement pluralization like rails?

Open Preen opened this issue 2 years ago • 1 comments

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?

Preen avatar Oct 27 '23 14:10 Preen

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.

huacnlee avatar Oct 01 '24 13:10 huacnlee