⚗️ Try to skip detecting language to fix online bugs

This commit is contained in:
LittleSheep 2024-07-28 21:40:47 +08:00
parent 8cd154f0de
commit 27994733dd

View File

@ -1,11 +1,14 @@
package services package services
import ( import (
"github.com/pemistahl/lingua-go"
"strings" "strings"
"github.com/pemistahl/lingua-go"
) )
func DetectLanguage(content string) string { func DetectLanguage(content string) string {
return "unknown"
detector := lingua.NewLanguageDetectorBuilder(). detector := lingua.NewLanguageDetectorBuilder().
FromLanguages(lingua.AllLanguages()...). FromLanguages(lingua.AllLanguages()...).
Build() Build()