mirror of
https://github.com/immich-app/immich.git
synced 2025-11-28 13:59:45 +09:00
fix(web): more language selector nits (#10271)
* fix: always sort development lang to bottom of list * fix: clear search query in languages when box is clicked
This commit is contained in:
@@ -67,7 +67,12 @@
|
||||
|
||||
const langOptions = langs
|
||||
.map((lang) => ({ label: lang.name, value: lang.code }))
|
||||
.sort((a, b) => a.label.localeCompare(b.label));
|
||||
.sort((a, b) => {
|
||||
if (b.label.startsWith('Development')) {
|
||||
return -1;
|
||||
}
|
||||
return a.label.localeCompare(b.label);
|
||||
});
|
||||
const defaultLangOption = { label: defaultLang.name, value: defaultLang.code };
|
||||
|
||||
const handleLanguageChange = async (newLang: string | undefined) => {
|
||||
|
||||
Reference in New Issue
Block a user