Hi, how to detect the browser default language and locale? How to add a request processing plugin that will intercept every request and read the browser language and use it if there is no language/locale set by user as session attribute?
thank you
a
Aleksei Tirman [JB]
01/30/2024, 7:31 AM
To detect them you can parse the Accept-Language header. You can write a plugin to intercept every request. For more information please see the documentation.