From 27994733dd821bf9b6ef4d12bb4a5a7fd4748f05 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 28 Jul 2024 21:40:47 +0800 Subject: [PATCH] :alembic: Try to skip detecting language to fix online bugs --- pkg/internal/services/languages.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/internal/services/languages.go b/pkg/internal/services/languages.go index 36e9503..2161625 100644 --- a/pkg/internal/services/languages.go +++ b/pkg/internal/services/languages.go @@ -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()