public static function acceptedLanguageCode()
{
if (!is_null(static::$acceptedLanguageCode)) {
return static::$acceptedLanguageCode;
}
$detected = explode(',', static::acceptedLanguage());
$detected = explode('-', $detected[0]);
return static::$acceptedLanguageCode = strtolower($detected[0]);
}