Plume-org / rocket_i18n

A crate to help you internationalize your Rocket applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make sure languages "with two parts" are handled correctly

elegaanz opened this issue · comments

For instance en-US or pt-BR

Yes, but my concern was more about making sure they are working with gettext-macros too, and that the two-parts version is correctly used when needed if the one-part version is also available (not sure if I'm clear, sorry).

If I'm reading that code right, the locale part (so -Lo out of ln-Lo) is simply ignored?

I believe it is very important to support this because of the Chinese language. The locales "Chinese (Traditional)" and "Chinese (Simplified)" are quite different, but share the zh language prefix.