fix: add sorting labels and types for multiple languages in translation files

This commit is contained in:
hamster1963
2026-06-01 15:20:35 +08:00
parent 631390586b
commit ad0682bbf1
13 changed files with 204 additions and 10 deletions
+2 -2
View File
@@ -388,7 +388,7 @@ export default function Servers() {
className="pointer-events-none select-none opacity-0 text-sm font-medium whitespace-nowrap"
aria-hidden
>
{sortType.charAt(0).toUpperCase() + sortType.slice(1)}
{t(`sort.types.${sortType.replace(/ /g, "_")}`)}
</span>
<select
aria-label="Sort metric"
@@ -402,7 +402,7 @@ export default function Servers() {
>
{SORT_TYPES.map((type) => (
<option key={type} value={type}>
{type.charAt(0).toUpperCase() + type.slice(1)}
{t(`sort.types.${type.replace(/ /g, "_")}`)}
</option>
))}
</select>