removed debug output
This commit is contained in:
parent
35867a5a63
commit
95bb6041a3
2
text.go
2
text.go
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user