diff --git a/apps/web/src/components/blindtest-view.tsx b/apps/web/src/components/blindtest-view.tsx index cfc2a76..af3eacf 100644 --- a/apps/web/src/components/blindtest-view.tsx +++ b/apps/web/src/components/blindtest-view.tsx @@ -14,6 +14,7 @@ import { useRoomStore } from "@/store/room" import { useYoutube, type YoutubeApi } from "@/lib/youtube" import { Countdown } from "@/components/countdown" import { Avatar } from "@/components/avatar" +import { useI18n } from "@/i18n/context" const inputClass = "border-input bg-background h-10 w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none disabled:opacity-50" @@ -33,6 +34,7 @@ export function BlindtestView({ snapshot }: { snapshot: RoomSnapshot }) { const voteBlindtest = useRoomStore((s) => s.voteBlindtest) const mediaControl = useRoomStore((s) => s.mediaControl) + const { t } = useI18n() const track = round?.payload as BlindtestRoundPayload | undefined const { hostRef, ready, api } = useYoutube(track?.youtubeId ?? "") @@ -68,7 +70,7 @@ export function BlindtestView({ snapshot }: { snapshot: RoomSnapshot }) {
C'est ton titre !
+{t.blindtest.yourTrack}
{mode === "title_artist" - ? "Tu ne votes pas. Savoure pendant que les autres cherchent." - : "Tu ne votes pas — ton but : que personne ne devine que c'est toi qui l'as ajouté. +50 par joueur trompé."} + ? t.blindtest.yourTrackTitleArtist + : t.blindtest.yourTrackWhoAdded}
- Réponse envoyée — en attente des autres + {t.game.answerSent}
) } @@ -281,13 +286,13 @@ function VoteForm({ <> setTitle(e.target.value)} /> setArtist(e.target.value)} /> @@ -314,7 +319,7 @@ function VoteForm({{truth.title}
{truth.artist}
- Ajouté par
+ {t.blindtest.revealAddedBy}
0 ? "text-green-500" : "text-red-500"}`} > - {result.points > 0 ? `+${result.points} points 🎉` : "Raté 💥"} + {result.points > 0 ? t.blindtest.points(result.points) : t.game.wrong}
)}- Partie terminée -
+{t.end.over}
- En attente que l'hôte relance une partie… + {t.end.waitHostReplay}
)}
- {t.title}
+
+ {track.title}
+
- ajouté par {t.submittedByName}
+ {t.end.addedBy(track.submittedByName)}
-
-
-
-
-
-
+ {r.index + 1} ·{" "} - {r.category ?? (r.type === "blindtest" ? "Blindtest" : "Quiz")} + {r.category ?? + (r.type === "blindtest" + ? t.gameTypes.blindtest + : t.gameTypes.quiz)} {" · "} ✓ {found}
@@ -547,7 +571,7 @@ function RoundsRecap({