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

intersection doesn't match primary languages #14

Open
LunarLambda opened this issue Dec 27, 2024 · 0 comments
Open

intersection doesn't match primary languages #14

LunarLambda opened this issue Dec 27, 2024 · 0 comments

Comments

@LunarLambda
Copy link

If the user requests en-US, and I specify support for en, I would expect intersection to return en, but it does not:

[src/main.rs:2:5] accept_language::intersection("en-US, de", &["en", "de"]) = [
    "de",
]

This means potentially having a huge list of language codes to match against.

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