Hi, how to detect the browser default language and...
# ktor
m
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
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.