Skip to content

Commit

Permalink
Minor en.yaml fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendPeter committed Dec 8, 2024
1 parent 86a42d8 commit c5319b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default ({open, onClose, onSubmit, targetedEmail=undefined}) => {
setEmailBody(t(`emails.${template_id}.body`, {
skipProcessing: true, // processing must occur in backend
title: election.title,
description: election.description ? `\n${t('emails.description', {description: election.description, skipProcessing: true})}\n`: '',
description: election.description ? `\n${t('emails.election_description', {description: election.description, skipProcessing: true})}\n`: '',
voting_begin: election.start_time ? `\n${t('emails.voting_begin', {datetime: election.start_time, skipProcessing: true})}\n` : '',
voting_end: election.end_time ? `\n${t('emails.voting_end', {datetime: election.end_time, skipProcessing: true})}\n` : '',
}))
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/Election/Results/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function PRResultsViewer() {

let remainingVoters = (results.summaryData.nValidVotes*(1 - ((page-1)/results.summaryData.weightedScoresByRound.length)))
remainingVoters = Math.round(remainingVoters*10)/10;
return <>
return <ResultsViewer methodKey='star_pr'>
<WidgetContainer>
<Widget title={t('results.star_pr.chart_title')}>
<Typography>
Expand Down Expand Up @@ -393,7 +393,7 @@ function PRResultsViewer() {
</WidgetContainer>
</DetailExpander>
</DetailExpander>
</>
</ResultsViewer>
}

export default function Results({ race, results }: {race: Race, results: ElectionResults}) {
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ ballot_submitted:
title: '{{capital_ballot}} Submitted'
description: Thank you for voting!
results: Results
donate: Donate
donate: Donate to Equal Vote
end_time: '{{capital_election}} ends {{date}} at {{time}}'

# Landing Page -> New Election Dialog
Expand Down Expand Up @@ -404,7 +404,7 @@ about:
onboarding and to be involved in discussions
donate_title: Donate
donate_description: Help us to continue supporting the website
donate_button: Donate
donate_button: Donate to Equal Vote
donate_link: https://www.equal.vote/donate

# Results page
Expand Down Expand Up @@ -935,7 +935,7 @@ methods:
star_pr:
full_name: Proportional STAR Voting
short_name: STAR PR
learn_link: https://www.equal.vote/pr
learn_link: https://www.starvoting.org/star-pr
approval:
full_name: Approval Voting
short_name: Approval Voting
Expand Down

0 comments on commit c5319b6

Please sign in to comment.