mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 01:11:00 +00:00
fix
This commit is contained in:
parent
7c37681afc
commit
5d8e513d45
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue