rmariuzzo / Lang.js

:performing_arts: Laravel Translator class in JavaScript!
MIT License
261 stars 62 forks source link

Support for LCID strings (en_us/en-us) on plural forms #81

Open lamungu opened 4 years ago

lamungu commented 4 years ago

Hi,

Is it possible to support LCID strings for the plural forms? we make use of en_us and en_ca rather than the en form, which poses problems when wanting to access the file we want, as getPluralForms function in the util.ts only supports the language codes.

Unless there is an alternative we can employ to circumvent that?

Many thanks

GENL commented 3 years ago

I suggest to use Matice: https://github.com/GENL/matice