kikito / i18n.lua

A very complete i18n lib for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pluralization - locale detection

kikito opened this issue · 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