Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any plans to implement pluralization like rails? #65

Open
Preen opened this issue Oct 27, 2023 · 1 comment
Open

Are there any plans to implement pluralization like rails? #65

Preen opened this issue Oct 27, 2023 · 1 comment

Comments

@Preen
Copy link

Preen commented Oct 27, 2023

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?

@huacnlee
Copy link
Member

huacnlee commented Oct 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants