Skip to content
Snippets Groups Projects
Commit e552b816 authored by jensilo's avatar jensilo
Browse files

improve visuals of language switch

parent 80049c15
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) { ...@@ -70,7 +70,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) {
u, _ := user.CtxUser(io.Context()) u, _ := user.CtxUser(io.Context())
return u != nil, nil return u != nil, nil
}, },
Position: 1100, Position: 1200,
}) })
webCtx.Navigation.Add("user.login", web.NavItem{ webCtx.Navigation.Add("user.login", web.NavItem{
...@@ -80,7 +80,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) { ...@@ -80,7 +80,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) {
u, _ := user.CtxUser(io.Context()) u, _ := user.CtxUser(io.Context())
return u == nil, nil return u == nil, nil
}, },
Position: 1000, Position: 1200,
}) })
webCtx.Navigation.Add("user.language.de", web.NavItem{ webCtx.Navigation.Add("user.language.de", web.NavItem{
...@@ -94,7 +94,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) { ...@@ -94,7 +94,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) {
return locale.Value != "de", nil return locale.Value != "de", nil
}, },
Position: 1050, Position: 1100,
}) })
webCtx.Navigation.Add("user.language.en", web.NavItem{ webCtx.Navigation.Add("user.language.en", web.NavItem{
...@@ -108,7 +108,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) { ...@@ -108,7 +108,7 @@ func registerNavigation(appCtx *hctx.AppCtx, webCtx *web.Ctx) {
return locale.Value != "en", nil return locale.Value != "en", nil
}, },
Position: 1050, Position: 1100,
}) })
} }
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
"language": { "language": {
"label": "Sprache", "label": "Sprache",
"de": "Deutsch", "de": "Deutsch",
"en": "Englisch" "en": "English"
} }
}, },
"error": { "error": {
......
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
"logout": "Logout", "logout": "Logout",
"language": { "language": {
"label": "Language", "label": "Language",
"de": "German", "de": "Deutsch",
"en": "English" "en": "English"
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment