mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-03 08:52:13 +00:00
feat: handle ui_locales in login (#1994)
* fix: handle ui_locales in login * move supportedlanguage func into i18n package * update oidc pkg
This commit is contained in:
@@ -343,6 +343,7 @@ func (l *Login) getTranslator(authReq *domain.AuthRequest) *i18n.Translator {
|
||||
if authReq != nil {
|
||||
l.addLoginTranslations(translator, authReq.DefaultTranslations)
|
||||
l.addLoginTranslations(translator, authReq.OrgTranslations)
|
||||
translator.SetPreferredLanguages(authReq.UiLocales...)
|
||||
}
|
||||
return translator
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user