mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
i18n server-side loading and setup
This commit is contained in:
parent
cd15c393fe
commit
f4a1350a41
2 changed files with 81 additions and 0 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/documize/community/core/env"
|
||||
"github.com/documize/community/core/i18n"
|
||||
"github.com/documize/community/domain"
|
||||
"github.com/documize/community/domain/section"
|
||||
"github.com/documize/community/domain/store"
|
||||
|
@ -62,6 +63,12 @@ func main() {
|
|||
}
|
||||
rt.Log.Info("Configuration: " + rt.Flags.ConfigSource)
|
||||
|
||||
// i18n
|
||||
err := i18n.Initialize(rt.Assets)
|
||||
if err != nil {
|
||||
rt.Log.Error("i18n", err)
|
||||
}
|
||||
|
||||
// Start database init.
|
||||
boot.InitRuntime(&rt, &s)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue