mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
16 lines
325 B
Go
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
|
|
}
|