ごめん

This commit is contained in:
守矢諏訪子 2023-07-18 13:54:56 +09:00
parent 8c332321b6
commit ce84bb63ca
1 changed files with 2 additions and 2 deletions

4
srv.go
View File

@ -70,7 +70,7 @@ func siteHandler (cnf Config) func (http.ResponseWriter, *http.Request) {
lang := initloc(r)
data.Lan = lang
i18n, err := goliblocale.GetLocale("locale/" + lang)
i18n, err := goliblocale.GetLocale(cnf.webpath + "/locale/" + lang)
if err != nil {
fmt.Println("liblocaleエラー%v", err)
return
@ -160,7 +160,7 @@ func archiveHandler (cnf Config) func (http.ResponseWriter, *http.Request) {
lang := initloc(r)
data.Lan = lang
i18n, err := goliblocale.GetLocale("locale/" + lang)
i18n, err := goliblocale.GetLocale(cnf.webpath + "/locale/" + lang)
if err != nil {
fmt.Println("liblocaleエラー%v", err)
return