Generally speaking websites will use browser technology/detection to determine the language of a user for translation display purposes.
So if your intent is to show your website in a relevant language after login you would use that
A quick google throws this back
If it’s an extension the language is passed as a query string parameter as well