Skip to content
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

localnames not included #24

Open
imnasnainaec opened this issue Jul 31, 2024 · 0 comments
Open

localnames not included #24

imnasnainaec opened this issue Jul 31, 2024 · 0 comments

Comments

@imnasnainaec
Copy link
Contributor

The data for the picker pulls from https://raw.githubusercontent.com/silnrsi/langtags/master/pub/langtags.json

The title of an entry appears to be of the form "{localname} / {name}" (or if there is no localname, then just "{name}"). The last line of an entry appears to be the names list. However, the localnames array isn't included, and should probably be appended to the names list (then duplicates removed).

For example
Screenshot 2024-07-31 135834
comes from

    {
        "full": "chr-Cher-US",
        "iana": [ "Cherokee" ],
        "iso639_3": "chr",
        "latnnames": [ "Tsalagi Gawonihisdi" ],
        "localname": "ᏣᎳᎩ",
        "localnames": [ "ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ" ],
        "name": "Cherokee",
        "names": [ "Aniyunwiya", "Tsalagi", "Tslagi" ],
        "region": "US",
        "regionname": "United States",
        "script": "Cher",
        "sldr": true,
        "tag": "chr",
        "tags": [ "chr-Cher", "chr-US" ],
        "windows": "chr-Cher"
    },

This is more an issue on entries with localnames but no localname, such as

    {
        "full": "aat-Grek-GR",
        "iana": [ "Arvanitika Albanian" ],
        "iso639_3": "aat",
        "latnnames": [ "Arbërisht" ],
        "localnames": [ "αρbε̰ρίσ̈τ" ],
        "macrolang": "sq",
        "name": "Albanian, Arvanitika",
        "names": [ "Arberichte", "Arbërisht", "Arvanitic", "Arvanitika", "Arvanitika Albanian" ],
        "region": "GR",
        "regionname": "Greece",
        "script": "Grek",
        "sldr": false,
        "tag": "aat",
        "tags": [ "aat-GR", "aat-Grek" ],
        "windows": "aat-Grek"
    },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant