fix(middleware): init translation messages (#7778)

* fix(middleware): init translation messages

* revert change

* refactor: split loop in separate function

* add imports to ensure init of fs
This commit is contained in:
Silvan
2024-04-16 14:08:18 +02:00
committed by GitHub
parent 386addc718
commit 9bcfa12be2
3 changed files with 58 additions and 33 deletions

View File

@@ -5,6 +5,11 @@ import (
"github.com/rakyll/statik/fs"
"github.com/zitadel/logging"
// ensure fs is setup
_ "github.com/zitadel/zitadel/internal/api/ui/login/statik"
_ "github.com/zitadel/zitadel/internal/notification/statik"
_ "github.com/zitadel/zitadel/internal/statik"
)
var zitadelFS, loginFS, notificationFS http.FileSystem