Automatic sorting

master
Splash 5 years ago committed by GitHub
parent a96a90c83a
commit 7b7e80ddcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,7 +24,7 @@ i18next
['ru', 'Русский'],
['zh-CN', '简体中文'],
['zh-TW', '繁體中文']
],
].sort(),
languageSelector = $('#language');
languages.map(([code, name]) => {
languageSelector.append(`<option value="${code}"${code == i18next.language ? ' selected' : ''}>${name}</option>`);

Loading…
Cancel
Save