Move stuff

This commit is contained in:
Timur Ismagilov 2024-06-04 23:05:25 +03:00
parent 42da5cced2
commit f34773e028
4 changed files with 1 additions and 23 deletions

View File

@ -1,22 +0,0 @@
package auth
type L10nEntry struct {
_en string
_ru string
}
func En(v string) L10nEntry {
return L10nEntry{_en: v}
}
func (e L10nEntry) Ru(v string) L10nEntry {
e._ru = v
return e
}
func (e L10nEntry) Get(lang string) string {
if lang == "ru" && e._ru != "" {
return e._ru
}
return e._en
}

View File

@ -2,7 +2,7 @@ package web
import (
"embed"
"github.com/bouncepaw/mycorrhiza/newtmpl"
"github.com/bouncepaw/mycorrhiza/web/newtmpl"
)
//go:embed views/*.html