Keep auto detect on top of source langs

This commit is contained in:
Piero Toffanin 2026-02-05 16:26:34 -05:00
parent 4f6a9cc193
commit e9a57a858a

View File

@ -158,6 +158,8 @@ document.addEventListener('DOMContentLoaded', function(){
sourceLangs: function(){
var srcLangs = JSON.parse(JSON.stringify(this.langs));
srcLangs.sort(function(a, b){
if (a.code === "auto") return -1;
if (b.code === "auto") return 1;
return a.name.localeCompare(b.name);
});
return srcLangs;