mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-19 05:50:09 +01:00
Fix auto-detect
This commit is contained in:
parent
8be739a783
commit
4ab7e7d2f5
@ -419,7 +419,7 @@ function handleLangsResponse(self, response) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.langs.push({ name: "Auto Detect (Experimental)", code: "auto" })
|
self.langs.push({ name: "Auto Detect", code: "auto", targets: self.langs.map(l => l.code)})
|
||||||
|
|
||||||
const sourceLanguage = self.langs.find(l => l.code === self.getQueryParam("source"))
|
const sourceLanguage = self.langs.find(l => l.code === self.getQueryParam("source"))
|
||||||
const targetLanguage = self.langs.find(l => l.code === self.getQueryParam("target"))
|
const targetLanguage = self.langs.find(l => l.code === self.getQueryParam("target"))
|
||||||
|
Loading…
Reference in New Issue
Block a user