Skip to content

Commit ad60dc0

Browse files
committed
[LW-11591] Parametrize the old 500 ADA in copy, too
1 parent ee93d7f commit ad60dc0

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

source/renderer/app/components/voting/voting-info/RegisterToVote.messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const messages = defineMessages({
2020
step2CheckBoxLabel: {
2121
id: 'voting.registerToVote.step2CheckBoxLabel',
2222
defaultMessage:
23-
'!!!Ensure that you register and hold the necessary 500 ADA at the time of the snapshot.',
23+
'!!!Ensure that you register and hold the necessary {minVotingFunds} ADA at the time of the snapshot.',
2424
description: 'Second step to follow in order to vote',
2525
},
2626
buttonLabel: {

source/renderer/app/components/voting/voting-info/RegisterToVote.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import React, { useState } from 'react';
2+
import BigNumber from 'bignumber.js';
23
import { injectIntl } from 'react-intl';
34
import { Button } from 'react-polymorph/lib/components/Button';
45
import { Checkbox } from 'react-polymorph/lib/components/Checkbox';
56
import type { Intl } from '../../../types/i18nTypes';
67
import { messages } from './RegisterToVote.messages';
78
import { messages as votingMessages } from './VotingInfo.messages';
89
import styles from './RegisterToVote.scss';
10+
import { VOTING_REGISTRATION_MIN_WALLET_FUNDS } from '../../../config/votingConfig';
911

1012
type Props = {
1113
intl: Intl;
@@ -38,7 +40,11 @@ function RegisterToVote({ intl, onRegisterToVoteClick }: Props) {
3840
<div className={styles.step}>
3941
<Checkbox
4042
checked={step2}
41-
label={intl.formatMessage(messages.step2CheckBoxLabel)}
43+
label={intl.formatMessage(messages.step2CheckBoxLabel, {
44+
minVotingFunds: new BigNumber(
45+
VOTING_REGISTRATION_MIN_WALLET_FUNDS
46+
).toFormat(0),
47+
})}
4248
onChange={setStep2}
4349
/>
4450
</div>

source/renderer/app/i18n/locales/defaultMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4467,7 +4467,7 @@
44674467
"id": "voting.registerToVote.step1CheckBoxLabel"
44684468
},
44694469
{
4470-
"defaultMessage": "!!!Ensure that you register and hold the necessary 500 ADA at the time of the snapshot.",
4470+
"defaultMessage": "!!!Ensure that you register and hold the necessary {minVotingFunds} ADA at the time of the snapshot.",
44714471
"description": "Second step to follow in order to vote",
44724472
"id": "voting.registerToVote.step2CheckBoxLabel"
44734473
},

source/renderer/app/i18n/locales/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@
728728
"voting.registerToVote.header": "Register to vote",
729729
"voting.registerToVote.registerToVoteButtonLabel": "Register to vote",
730730
"voting.registerToVote.step1CheckBoxLabel": "Download the Catalyst Voting app on your smartphone",
731-
"voting.registerToVote.step2CheckBoxLabel": "Ensure that you register and hold the necessary 500 ADA at the time of the snapshot.",
731+
"voting.registerToVote.step2CheckBoxLabel": "Ensure that you register and hold the necessary {minVotingFunds} ADA at the time of the snapshot.",
732732
"voting.registerToVote.stepsTitle": "Follow these steps to vote:",
733733
"voting.registerToVote.votingInstructions": "If you are not registered yet, make sure to register to vote in the current fund before the snapshot date.",
734734
"voting.resultsPhase.endDateLabel": "End of voting:",

source/renderer/app/i18n/locales/ja-JP.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@
728728
"voting.registerToVote.header": "有権者登録をする",
729729
"voting.registerToVote.registerToVoteButtonLabel": "有権者登録をする",
730730
"voting.registerToVote.step1CheckBoxLabel": "スマートフォンにCatalyst Votingアプリをダウンロードします",
731-
"voting.registerToVote.step2CheckBoxLabel": "スナップショット実施の時点で、登録を済ませ、500ADAを保有していてください",
731+
"voting.registerToVote.step2CheckBoxLabel": "スナップショット実施の時点で、登録を済ませ、{minVotingFunds}ADAを保有していてください",
732732
"voting.registerToVote.stepsTitle": "投票方法:",
733733
"voting.registerToVote.votingInstructions": "登録を済ませていない場合は、スナップショットの実施日前に現行のファンドの有権者登録を行ってください。",
734734
"voting.resultsPhase.endDateLabel": "投票締め切り:",

translations/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4467,7 +4467,7 @@
44674467
"id": "voting.registerToVote.step1CheckBoxLabel"
44684468
},
44694469
{
4470-
"defaultMessage": "!!!Ensure that you register and hold the necessary 500 ADA at the time of the snapshot.",
4470+
"defaultMessage": "!!!Ensure that you register and hold the necessary {minVotingFunds} ADA at the time of the snapshot.",
44714471
"description": "Second step to follow in order to vote",
44724472
"id": "voting.registerToVote.step2CheckBoxLabel"
44734473
},

0 commit comments

Comments
 (0)