feat: add aria labels to How Long to Beat and Achievements in game details sidebar

This commit is contained in:
cj-do-gta-sander 2024-10-24 14:52:54 -03:00
parent c754710171
commit a25a960235
4 changed files with 9 additions and 0 deletions

View File

@ -136,6 +136,7 @@
"warning": "Warning:",
"hydra_needs_to_remain_open": "for this download, Hydra needs to remain open util its conclusion. In case Hydra closes before the conclusion, you will lose your progress.",
"achievements": "Achievements",
"achievement": "Achievement",
"achievements_count": "Achievements {{unlockedCount}}/{{achievementsCount}}",
"cloud_save": "Cloud save",
"cloud_save_description": "Save your progress in the cloud and continue playing on any device",

View File

@ -132,6 +132,7 @@
"warning": "Aviso:",
"hydra_needs_to_remain_open": "para este download, o Hydra precisa ficar aberto até a conclusão. Caso o Hydra encerre antes da conclusão, perderá seu progresso.",
"achievements": "Conquistas",
"achievement": "Conquista",
"achievements_count": "Conquistas ({{unlockedCount}}/{{achievementsCount}})",
"cloud_save": "Salvamento em nuvem",
"cloud_save_description": "Mantenha seu progresso na nuvem e continue de onde parou em qualquer dispositivo",

View File

@ -38,6 +38,9 @@ export function HowLongToBeatSection({
<li
key={category.title}
className={styles.howLongToBeatCategory}
aria-label={`${category.title}, ${getDuration(
category.duration,
)}`}
>
<p
className={styles.howLongToBeatCategoryLabel}

View File

@ -194,6 +194,10 @@ export function Sidebar() {
})}
className={styles.listItem}
title={achievement.description}
aria-label={`
${t("achievement")} ${index + 1},
${achievement.displayName}
`}
>
<img
className={styles.listItemImage({