⚗️ 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
import (
"github.com/pemistahl/lingua-go"
"strings"
"github.com/pemistahl/lingua-go"
)
func DetectLanguage(content string) string {
return "unknown"
detector := lingua.NewLanguageDetectorBuilder().
FromLanguages(lingua.AllLanguages()...).
Build()