⚗️ Try to skip detecting language to fix online bugs
This commit is contained in:
parent
8cd154f0de
commit
27994733dd
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user