Skip to content

Commit

Permalink
I18n
Browse files Browse the repository at this point in the history
  • Loading branch information
kr-matthews committed Jan 15, 2025
1 parent 8213272 commit 18c1902
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,25 @@ export default function RegistrationList({ competitionInfo, userInfo }) {
{userIsInTable && (
<Message>
{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 },
)
)}
<Button size="mini" onClick={() => userRowRef?.current?.scrollIntoView({ behavior: "smooth", block: "center" })}>
Scroll to me
{' '}
<Button
size="mini"
onClick={
() => userRowRef?.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
}
>
{I18n.t('competitions.registration_v2.list.psychsheets.scroll_to_me')}
</Button>
</Message>
)}
Expand Down
4 changes: 3 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 18c1902

Please sign in to comment.