mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
feat: add aria labels to How Long to Beat and Achievements in game details sidebar
This commit is contained in:
parent
c754710171
commit
a25a960235
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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}
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user