Add multi language support for authentication middleware

This commit is contained in:
Achim Rohn
2025-09-17 18:05:23 +02:00
parent 667345bc9e
commit f70a4ad777
10 changed files with 182 additions and 10 deletions
+4 -1
View File
@@ -23,7 +23,10 @@ func NewLoginPage(e *echo.Echo, createPage ersteller_lib.CreatePageFunc, googleL
func (l *LoginPage) Render(c echo.Context) error {
return l.createPage(c, ersteller_lib.PageWebsiteMetaData{
Title: "Login",
Title: ersteller_lib.NewI18nText(map[ersteller_lib.Language]string{
ersteller_lib.En: "Login",
ersteller_lib.De: "Anmelden",
}),
HideNavigation: true,
}, l.getLoginPage())
}