1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2025-01-17 17:44:29 +02:00
This commit is contained in:
Piero Toffanin 2022-12-11 00:55:14 -05:00
commit b9293e911a

View File

@ -419,7 +419,7 @@ function handleLangsResponse(self, response) {
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 targetLanguage = self.langs.find(l => l.code === self.getQueryParam("target"))