pre-dev: add lang helper

This commit is contained in:
dpurbosakti
2025-08-12 10:47:14 +07:00
parent 4b3090d788
commit 28e043f4da
7 changed files with 179 additions and 7 deletions
+19
View File
@@ -0,0 +1,19 @@
// Package langhelper provides helper functions for language
package langhelper
import (
a "github.com/karincake/apem"
l "github.com/karincake/lepet"
)
type Cfg struct {
LangCfg *l.LangCfg `yaml:"langCfg"`
}
func Populate() {
cfg := &Cfg{
LangCfg: &l.LangCfg{},
}
a.ParseCfg(&cfg)
l.Init(cfg.LangCfg)
}