-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language Chooser: Sometimes not showing autonym #40
Comments
For this example, the langtags data has localname and not localnames:
But our code is ignoring localname:
@nabalone, looks like we need to rethink this? |
Okay, I took a closer look and now I think it actually would be okay to fall back to the "localname" name value. There are 73 languages with a "localname" value and no "localnames" value. I checked maybe 20 of them, and so far Spanish is the only such case I've seen where it looks like it would be problematic to use the "localname" value (and we are overwriting the Spanish card anyway). So I think we could use the "localname" value where there is no "localnames" value, and there would be very few if any cases where the name would be problematically narrow. And if there are such cases, hopefully the longer list of names will clarify things for the users. We prefer "localnames" because it is what Ethnologue uses. See https://github.com/silnrsi/langtags/blob/master/doc/langtags.md Will put in a PR. Edit: PR is #40 |
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: