toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
642 stars 106 forks source link

Suggestion to implement ICU syntax for gender and pluralization #475

Open marvinfretly opened 1 year ago

marvinfretly commented 1 year ago

I would like to suggest a new feature for NestJS i18n that would enable the use of ICU syntax for gender and pluralization. Currently, ngx-translate-messageformat-compiler is used in Angular to handle gender and pluralization, which is a powerful tool that leverages the messageformat.js library.

Given that NestJS is based on the Angular architecture, it would be great to have this feature integrated into the nestjs-i18n plugin. Currently, there is no possibility to use gender and the syntax to achieve pluralization is somewhat cumbersome, requiring multiple translations/lines for a single purpose.

I believe that implementing this feature would greatly enhance the i18n capabilities of NestJS and improve the development experience for multilingual applications. Thank you for considering this suggestion.

rubiin commented 1 year ago

would you like a pr?