feat: add language selection combobox and update TTS dialog for improved language handling

This commit is contained in:
JSC
2025-09-21 15:20:12 +02:00
parent 7ac979a4f4
commit 7faf2d38ab
7 changed files with 141 additions and 45 deletions

View File

@@ -98,6 +98,11 @@ export const ttsService = {
bValue = new Date(bValue as string).getTime()
}
// Handle null values
if (aValue === null && bValue === null) return 0
if (aValue === null) return 1
if (bValue === null) return -1
const comparison = aValue > bValue ? 1 : -1
return params.sort_order === 'asc' ? comparison : -comparison
})