You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is in the scope of this project, but when I got here I expected to get the actual name of the language of a parsed language tag. I realize this library currently just implements the specification itself and doesn't keep a list of all subtags, but maybe we can change that? Sure, the subtag registry is huge but also the only resource to get the actual language names and scopes from. I think with some tricks we can compress that list, especially regarding the redundant and grandfathered entries. Also, not all entries are languages, but just regions or scripts, since this is a list of all possible subtags. Some metadata:
48149 lines
711 KB
9122 entries
8178 entries with Type: language
a lot of entries have multiple Description values, it seems like just caring about the first one of each entry is enough
Some values are irrelevant here and can be omitted
Ugh, I always forget about the Intl object! Thanks, and yeah, you're right, this is not in the scope and since Intl exists, there is no need for it here.
I don't know if this is in the scope of this project, but when I got here I expected to get the actual name of the language of a parsed language tag. I realize this library currently just implements the specification itself and doesn't keep a list of all subtags, but maybe we can change that? Sure, the subtag registry is huge but also the only resource to get the actual language names and scopes from. I think with some tricks we can compress that list, especially regarding the
redundant
andgrandfathered
entries. Also, not all entries are languages, but just regions or scripts, since this is a list of all possible subtags. Some metadata:Type: language
Description
values, it seems like just caring about the first one of each entry is enoughHere is a short gist from me which converts the registry to a json that could be readable by this library:
https://gist.github.com/nnmrts/7f06da21729a7d495cdee147271847b5
The text was updated successfully, but these errors were encountered: