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

Doesn't work on Safari. #103

Closed
Marcin-TA opened this issue Oct 1, 2019 · 4 comments
Closed

Doesn't work on Safari. #103

Marcin-TA opened this issue Oct 1, 2019 · 4 comments

Comments

@Marcin-TA
Copy link

No description provided.

@willdurand
Copy link
Owner

What isn't working exactly?

@Marcin-TA
Copy link
Author

Marcin-TA commented Oct 1, 2019

It doesn't detect the Safari default language. I use version 2.3.1 of the lib. Basically, Safari returns e.g. en-gb for $_SERVER['HTTP_ACCEPT_LANGUAGE']. However, the negotiator class throws an exception when I call getType() method.

@Marcin-TA
Copy link
Author

@here For future reference, I recommend to install PHP extension ext-intl and use this: https://www.php.net/manual/en/locale.lookup.php

@willdurand
Copy link
Owner

should be fixed by #113

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

2 participants