removed debug output

This commit is contained in:
Timon Ringwald 2022-05-08 18:20:24 +02:00
parent 35867a5a63
commit 95bb6041a3

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"net/http"
"golang.org/x/text/language"
@ -51,7 +50,6 @@ var languageMatcher = language.NewMatcher([]language.Tag{
})
func GetText(r *http.Request) *Text {
fmt.Println(r.Header.Get("Accept-Language"))
lang, _ := language.MatchStrings(languageMatcher, r.Header.Get("Accept-Language"))
text := Languages[lang]
base, _ := lang.Base()