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

Feature Request: auto load required plurizers #21

Open
honzasterba opened this issue Jul 21, 2022 · 2 comments
Open

Feature Request: auto load required plurizers #21

honzasterba opened this issue Jul 21, 2022 · 2 comments

Comments

@honzasterba
Copy link
Contributor

Description

If my understanding is correct, if you want to use different than default pluralizer you need to register when initializing i18n-js. This is different to rails-i18n where pluralizers are loaded based on locale.

Describe the solution

Implement similar mechanism where the locale files included in this lib would optionally refference pluralizer name used for given locale.

If this is in deed a good idea I will prepare a PR.

@fnando
Copy link
Owner

fnando commented Dec 17, 2022

I'm working on adding support for make-plural package (pr #43), rather than having to re-implement pluralization rules for different languages (like you had to do with #20).

One of the questions I have about automatic activation is related to how to make this work without requiring a bunch of pluralizers that may not necessarily be used, increasing the final bundle size. I'd like to hear your thoughts and see would you approach this problem.

@honzasterba
Copy link
Contributor Author

What's wrong with loading pluralizers based on activated locales?

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