Fixed a bug

git-svn-id: file:///srv/svn/repo/mai/trunk@32 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
manerakai
2023-09-20 11:59:10 +00:00
parent 5182de046a
commit 0f7330e9da
2 changed files with 14 additions and 3 deletions

View File

@@ -277,6 +277,10 @@ func (_ *GoogleTranslate) Translate(text string, from, to string) (TranslationRe
}
}
if from == "auto" {
from = ""
}
return TranslationResult{
SourceLanguage: from,
Definitions: definitions,