2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/internal/bootstrap/t.go
2026-01-04 04:47:56 +08:00

16 lines
325 B
Go

package bootstrap
import (
"github.com/leonelquinteros/gotext"
"github.com/acepanel/panel/pkg/config"
"github.com/acepanel/panel/pkg/embed"
)
func NewT(conf *config.Config) (*gotext.Locale, error) {
l := gotext.NewLocaleFSWithPath(conf.App.Locale, embed.LocalesFS, "locales")
l.AddDomain("backend")
return l, nil
}