From 18c19025def9825b343a824399c0580d1851fbf4 Mon Sep 17 00:00:00 2001 From: Kevin Matthews Date: Tue, 14 Jan 2025 16:11:01 -0800 Subject: [PATCH] I18n --- .../Registrations/RegistrationList.jsx | 20 +++++++++++++++---- config/locales/en.yml | 4 +++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/app/webpacker/components/RegistrationsV2/Registrations/RegistrationList.jsx b/app/webpacker/components/RegistrationsV2/Registrations/RegistrationList.jsx index d1baaad7bb..81820dfb9a 100644 --- a/app/webpacker/components/RegistrationsV2/Registrations/RegistrationList.jsx +++ b/app/webpacker/components/RegistrationsV2/Registrations/RegistrationList.jsx @@ -136,13 +136,25 @@ export default function RegistrationList({ competitionInfo, userInfo }) { {userIsInTable && ( {userPosition && ( - `Your rank by ${psychSheetSortBy} is ${userPosition}. ` + I18n.t( + 'competitions.registration_v2.list.psychsheets.your_rank', + { psychSheetSortBy, userPosition }, + ) )} {!userPosition && isPsychSheet && ( - `You do not have an official ${psychSheetSortBy}. ` + I18n.t( + 'competitions.registration_v2.list.psychsheets.no_result', + { psychSheetSortBy }, + ) )} - )} diff --git a/config/locales/en.yml b/config/locales/en.yml index ea87638cc0..fa067acd41 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1845,7 +1845,9 @@ en: initialized: "Payment process was started on %{date}, but not finished." refunded: "Payment was refunded on %{date}." psychsheets: - go_back: "Go Back" + scroll_to_me: "Scroll to me" + your_rank: "Your rank by %{psychSheetSortBy} is %{userPosition}." + no_result: "You do not have an official %{psychSheetSortBy}." timestamp: "Timestamp" comment_and_note: "Comment & Note" edit_waiting_list: "Enable Waiting List Edit Mode"