diff --git a/frontend/src/features/seasons/LeaderboardTable.tsx b/frontend/src/features/seasons/LeaderboardTable.tsx index 0f91db533..cdaabe6d7 100644 --- a/frontend/src/features/seasons/LeaderboardTable.tsx +++ b/frontend/src/features/seasons/LeaderboardTable.tsx @@ -71,9 +71,22 @@ interface LeaderboardTableProps { caption?: string; } -/** Season standings: search, clan/language filters, sortable field-name columns, paging, "find me". */ +/** Season standings: search, clan/language filters, sortable columns, paging, "find me". */ export function LeaderboardTable({ results, onInsights, title, caption }: LeaderboardTableProps) { const { t } = useTranslation(); + const labels: Record = { + place: t('Place'), + user_name: t('Player'), + clan_name: t('Clan'), + total_points: t('Points'), + total_wins_count: t('Wins'), + total_games_count: t('Games'), + total_score: t('Score'), + tournaments_count: t('Tournaments'), + avg_place: t('Avg Place'), + best_place: t('Best Finish'), + total_time: t('Time Played'), + }; const { current_user: me } = useSharedProps(); const [query, setQuery] = useState(''); const [clan, setClan] = useState(null); @@ -199,17 +212,17 @@ export function LeaderboardTable({ results, onInsights, title, caption }: Leader - place + {labels.place} - user_name + {labels.user_name} - clan_name + {labels.clan_name} {NUMERIC.map((column) => ( - {column} + {labels[column]} ))} diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index caf19f2f3..1ee4e916d 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -2217,7 +2217,7 @@ msgid "Best" msgstr "Mejor" msgid "Best Finish" -msgstr "Mejor acabado" +msgstr "Mejor puesto" msgid "Better than %{percent}% of players" msgstr "Mejor que el %{percent}% de los jugadores" diff --git a/priv/gettext/zh/LC_MESSAGES/default.po b/priv/gettext/zh/LC_MESSAGES/default.po index a68f1c488..649a4a22e 100644 --- a/priv/gettext/zh/LC_MESSAGES/default.po +++ b/priv/gettext/zh/LC_MESSAGES/default.po @@ -2147,7 +2147,7 @@ msgid "Best" msgstr "最佳" msgid "Best Finish" -msgstr "最佳完成度" +msgstr "最佳排名" msgid "Better than %{percent}% of players" msgstr "优于 %{percent}% 的玩家" @@ -5129,7 +5129,7 @@ msgid "Total number of teams %{count}" msgstr "团队总数%{count}" msgid "Place" -msgstr "地点" +msgstr "排名" msgid "Score" msgstr "分数"