-
Notifications
You must be signed in to change notification settings - Fork 23
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
Not supporting header containing plain language-country only, e.g., en-US
#24
Comments
@frankthelen I think the first argument of the var language = parser.pick(['en-US', 'fr-FR'], 'en-US') // en-US
var language2 = parser.pick(['en-US', 'fr-FR'], 'en') // en-US |
Closing because of lack of interest. Please reopen if needed. |
Well, strictly speaking, But anyway, as far as I know, it affects only iPads that are (sometimes?) not sending correct full |
@ArnoldZokas what's your opinion on that? |
In my use case I need to pick one of non-prefixed languages given prefixed accept-language. There should be at least an option to have this behavior :) |
Hi,
if you switch language on an iPad (via Settings / General / Language & Region / iPad Language), Safari might not send the usual language-country + language combination (e.g.,
en-US,en
) but a plain language-country only (e.g.,en-US
) without language fallback. Unfortunately, this is not supported by the accept language parser.Expected behavior:
Actual behavior:
Not sure if this should be supported.
Thank you.
The text was updated successfully, but these errors were encountered: