setLocale() doesn't change the language set by browser |
To set the language you need to do this:
PHP Code: $language = \Config\Services::language(); That way you won't need to set the language every single time. Also, I think that this function would do the validation for you. |
Messages In This Thread |
setLocale() doesn't change the language set by browser - by blackrabbit - 04-07-2020, 05:54 AM
RE: setLocale() doesn't change the language set by browser - by blackrabbit - 04-23-2020, 04:05 PM
RE: setLocale() doesn't change the language set by browser - by thingNumber1 - 04-26-2020, 10:48 AM
RE: setLocale() doesn't change the language set by browser - by blackrabbit - 04-26-2020, 12:14 PM
RE: setLocale() doesn't change the language set by browser - by eelisland - 01-10-2021, 11:51 AM
|