mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 08:27:03 +02:00
fix
This commit is contained in:
parent
7c37681afc
commit
5d8e513d45
@ -227,7 +227,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||
self.translatedText = res.translatedText;
|
||||
self.loadingTranslation = false;
|
||||
self.output = JSON.stringify(res, null, 4);
|
||||
if(self.sourceLang == "auto" && res.detectedLanguage.length > 0){
|
||||
if(self.sourceLang == "auto" && res.detectedLanguage !== undefined){
|
||||
self.detectedLangText = res.detectedLanguage.language+" ("+res.detectedLanguage.confidence+"%)";
|
||||
}
|
||||
} else{
|
||||
|
Loading…
Reference in New Issue
Block a user