mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-02-06 11:03:39 -05:00
Keep auto detect on top of source langs
This commit is contained in:
parent
4f6a9cc193
commit
e9a57a858a
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user