kikito/i18n.lua

pluralization - locale detection

kikito opened this issue · 1 comments

It would be nice if the lib could detect variants when choosing the pluralization option: i.e. for 'en_US' and 'en-CA', it should choose the 'en' pluralization rule, and so on.

Notice that this fix will work on 'en-US' but not on 'en_US' or 'en US'. This is respecting the rfc4646