We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc9d4b0 commit cab9079Copy full SHA for cab9079
src/WebApp/LanguageUtils.php
@@ -37,6 +37,7 @@ public static function getPreferredUserLanguage($priorities) {
37
38
protected static function getBest($header, $priorities) {
39
$negotiator = new \Negotiation\LanguageNegotiator();
40
+ if (\TgUtils\Utils::isEmpty($header)) $header = 'en-US,en';
41
$best = $negotiator->getBest($header, $priorities);
42
if ($best != NULL) {
43
return $best->getType();
0 commit comments