If a cookie or session contains a language, use that. Determine locale from the URL by default. On login, apply the user’s default language.