Add ActivePath

This commit is contained in:
Achim Rohn
2025-08-11 22:34:50 +02:00
parent 37439305d3
commit 740d145464
2 changed files with 43 additions and 4 deletions
+12
View File
@@ -69,3 +69,15 @@ func (t I18nText) GetKey() string {
}
return ""
}
type ActivePath struct {
I18nText
Path string
}
func NewActivePath(path string, langMap map[Language]string) ActivePath {
return ActivePath{
I18nText: NewI18nText(langMap),
Path: path,
}
}