ごめん

This commit is contained in:
守矢諏訪子 2023-07-18 13:54:18 +09:00
parent 35999991ec
commit 4ae450a4f3
1 changed files with 2 additions and 2 deletions

4
srv.go
View File

@ -74,7 +74,7 @@ func serv (cnf Config, port int) {
http.HandleFunc("/api/lolify", func(w http.ResponseWriter, r *http.Request) {
lang := initloc(r)
i18n, err := goliblocale.GetLocale("locale/" + lang)
i18n, err := goliblocale.GetLocale(cnf.webpath + "/locale/" + lang)
if err != nil {
fmt.Println("liblocaleエラー%v", err)
return
@ -123,7 +123,7 @@ func serv (cnf Config, port int) {
uri := r.URL.Path
lang := initloc(r)
i18n, err := goliblocale.GetLocale("locale/" + lang)
i18n, err := goliblocale.GetLocale(cnf.webpath + "/locale/" + lang)
if err != nil {
fmt.Println("liblocaleエラー%v", err)
return