florrain / locale

Browser locale negotiation for node.js
MIT License
257 stars 36 forks source link

Don't do partial matches (e.g. pt-PT -> pt-BR) #29

Closed brettkiefer closed 9 years ago

brettkiefer commented 9 years ago

If we have a language that is good for all locales, we can name that language by just language (e.g. 'pt'). What we should NOT do is match 'pt-PT' to 'pt-BR' in the absence of 'pt'.

This is apparently desired behavior in the current jed/locale, so we'll fork.

brettkiefer commented 9 years ago

Oops, wrong button.