Fuzzy language matching
SimonSapin opened this issue · 1 comments
SimonSapin commented
en
and en_US
should probably use the same dictionary, but there are many more subtle cases. The "proper" way to do this is described in BCP47, although Pyphen can maybe get away with something simpler that works with the set of distributed dictionaries.
Babel is having a similar issue, maybe Pyphen can do what they do when they figure it out :) python-babel/babel#39
liZe commented
Our function uses the standard truncation inheritance mechanism. Scripts management needs aliases for languages with multiple regions. Unfortunately, babel will probably need something more powerful.