Add setLocaleFromCookie