Closed Marcin-TA closed 2 years ago
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.
@here For future reference, I recommend to install PHP extension ext-intl
and use this: https://www.php.net/manual/en/locale.lookup.php
should be fixed by https://github.com/willdurand/Negotiation/pull/113
What isn't working exactly?