Translate vote sorting

This commit is contained in:
MartinBraquet
2026-01-02 13:55:49 +02:00
parent 08d98468c5
commit eed3e71113
3 changed files with 6 additions and 2 deletions

View File

@@ -127,6 +127,7 @@ export function VoteButtons(props: {
'absolute z-10 mt-2 w-40 rounded-md border border-ink-200 bg-canvas-50 shadow-lg',
'dark:bg-ink-900'
)}>
<div className="px-3 py-2 text-sm font-semibold bg-canvas-25">{t("vote.priority", "Priority")}</div>
{priorities.map((p) => (
<button
key={p.value}

View File

@@ -50,7 +50,7 @@ export function VoteComponent() {
>
{ORDER_BY.map((key) => (
<option key={key} value={key}>
{ORDER_BY_CHOICES[key]}
{t(`vote.sort.${key}`, ORDER_BY_CHOICES[key])}
</option>
))}
</select>

View File

@@ -157,10 +157,13 @@
"vote.abstain": "Abstention",
"vote.against": "Contre",
"vote.priority": "Priorité",
"vote.urgent": "Urgent",
"vote.urgent": "Urgente",
"vote.high": "Haute",
"vote.medium": "Moyenne",
"vote.low": "Faible",
"vote.sort.recent": "Plus récents",
"vote.sort.mostVoted": "Plus votés",
"vote.sort.priority": "Plus prioritaires",
"signin.seo.title": "Se connecter",
"signin.seo.description": "Connectez-vous à votre compte",
"signin.title": "Se connecter",