diff --git a/api.go b/api.go index f3a8e91..65ef774 100644 --- a/api.go +++ b/api.go @@ -1805,22 +1805,27 @@ func (app *appContext) Logout(gc *gin.Context) { func (app *appContext) GetLanguages(gc *gin.Context) { page := gc.Param("page") resp := langDTO{} - if page == "form" { + switch page { + case "form": for key, lang := range app.storage.lang.Form { resp[key] = lang.Meta.Name } - } else if page == "admin" { + case "admin": for key, lang := range app.storage.lang.Admin { resp[key] = lang.Meta.Name } - } else if page == "setup" { + case "setup": for key, lang := range app.storage.lang.Setup { resp[key] = lang.Meta.Name } - } else if page == "email" { + case "email": for key, lang := range app.storage.lang.Email { resp[key] = lang.Meta.Name } + case "pwr": + for key, lang := range app.storage.lang.PasswordReset { + resp[key] = lang.Meta.Name + } } if len(resp) == 0 { respond(500, "Couldn't get languages", gc) diff --git a/html/setup.html b/html/setup.html index 3fffa6f..50e6f91 100644 --- a/html/setup.html +++ b/html/setup.html @@ -376,7 +376,18 @@

{{ .lang.PasswordResets.pathToJellyfinNotice }}

-