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

Suggestion to implement ICU syntax for gender and pluralization

Open marvinfretly opened this issue 1 year ago • 1 comments

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.

marvinfretly avatar Mar 08 '23 11:03 marvinfretly

would you like a pr?

rubiin avatar Aug 17 '23 08:08 rubiin