Skip to content

Commit 7bec7bf

Browse files
authored
fix: Support us translations (#2010)
1 parent 80577cb commit 7bec7bf

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

public/locales/bg/donation-flow.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
"bank-instructions2": "Разчитаме на Вас да си направите профил или да ни оставите email на следващaтa стъпкa, за да можем да свържем дарението с Вашия потребителски профил. Благодарим предварително!",
7575
"bank-details": "Детайли на банкова сметка",
7676
"btn-copy": "Копирай",
77+
"owner_name": "Получател:",
7778
"owner": "Сдружение Подкрепи БГ",
79+
"bank_name": "Банка:",
7880
"bank": "Уникредит Булбанк",
7981
"reason-donation": "Като основание за превод въведете",
8082
"message-warning": "Ако не въведете точно основанието, може да не успеем да разпределим парите към предназначената кампания",

public/locales/en/donation-flow.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
7878
"bank-instructions2": "We trust you to register or to leave an email on the next step, so that we can link your donation to your account. Thank you!",
7979
"bank-details": "Details of our bank account:",
8080
"btn-copy": "Copy",
81+
"owner_name": "Recipient:",
8182
"owner": "Association Podkrepi BG",
83+
"bank_name": "Bank:",
8284
"bank": "Unicredit Bulbank",
8385
"reason-donation": "For payment reference use:",
8486
"message-warning": "If you don't enter the exact reference we may not be able to assign the money to the desired campaign.",

src/components/client/support-us-form/SupportUsForm.tsx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ export default function SupportUsForm() {
1111
const { t } = useTranslation('donation-flow')
1212

1313
const bankAccountInfo = {
14-
owner: t('third-step.owner_name'),
15-
ownerValue: t('third-step.owner_value'),
16-
bank: t('third-step.bank_name'),
17-
bankValue: t('third-step.bank_value'),
14+
owner: t('step.payment-method.bank.owner_value'),
15+
ownerValue: t('step.payment-method.bank.owner'),
16+
bank: t('step.payment-method.bank.bank'),
1817
bic: BIC,
1918
iban: ibanNumber,
2019
paymentReference: t('support_us:support-us-reference'),
@@ -24,36 +23,36 @@ export default function SupportUsForm() {
2423
<List component="div" disablePadding>
2524
<Typography variant="body1">{t('support_us:support-info')}</Typography>
2625
<Typography variant="h6" mt={4} mb={1}>
27-
{t('third-step.bank-details')}
26+
{t('step.payment-method.bank.bank-details')}
2827
</Typography>
2928
<Divider />
3029
<Grid container alignItems="center" mt={2} mb={2}>
3130
<Grid my={1} item xs={4}>
32-
<BankDetailsLabel>{t('third-step.owner_name')}</BankDetailsLabel>
31+
<BankDetailsLabel>{t('step.payment-method.bank.owner_name')}</BankDetailsLabel>
3332
</Grid>
3433
<Grid my={1} item xs={5} justifyContent="flex-start">
35-
<Typography>{t('third-step.owner_value')}</Typography>
34+
<Typography>{t('step.payment-method.bank.owner')}</Typography>
3635
</Grid>
3736
<Grid my={1} item xs={3} display="flex" justifyContent="center">
3837
<CopyTextButton
39-
label={t('third-step.btn-copy')}
40-
text={t('third-step.owner_value')}
38+
label={t('step.payment-method.bank.btn-copy')}
39+
text={bankAccountInfo.ownerValue}
4140
variant="contained"
4241
size="small"
4342
color="info"
4443
sx={{ display: 'flex', justifyContent: 'center' }}
4544
/>
4645
</Grid>
4746
<Grid my={1} item xs={4}>
48-
<BankDetailsLabel>{t('third-step.bank_name')}</BankDetailsLabel>
47+
<BankDetailsLabel>{t('step.payment-method.bank.bank_name')}</BankDetailsLabel>
4948
</Grid>
5049
<Grid my={1} item xs={5}>
51-
<Typography>{t('third-step.bank_value')}</Typography>
50+
<Typography>{t('step.payment-method.bank.bank')}</Typography>
5251
</Grid>
5352
<Grid my={1} item display="flex" justifyContent="center" xs={3}>
5453
<CopyTextButton
55-
label={t('third-step.btn-copy')}
56-
text={t('third-step.bank_value')}
54+
label={t('step.payment-method.bank.btn-copy')}
55+
text={bankAccountInfo.bank}
5756
variant="contained"
5857
size="small"
5958
color="info"
@@ -82,7 +81,7 @@ export default function SupportUsForm() {
8281
</Grid>
8382
<Grid my={1} item display="flex" justifyContent="center" xs={3}>
8483
<CopyTextButton
85-
label={t('third-step.btn-copy')}
84+
label={t('step.payment-method.bank.btn-copy')}
8685
text={bankAccountInfo.bic}
8786
variant="contained"
8887
size="small"
@@ -91,15 +90,15 @@ export default function SupportUsForm() {
9190
</Grid>
9291
<Grid my={1} item xs={4}>
9392
<BankDetailsLabel my={1} pr={2}>
94-
{t('third-step.reason-donation')}
93+
{t('step.payment-method.bank.reason-donation')}
9594
</BankDetailsLabel>
9695
</Grid>
9796
<Grid my={1} item xs={5}>
9897
<Typography>{bankAccountInfo.paymentReference}</Typography>
9998
</Grid>
10099
<Grid my={1} item display="flex" justifyContent="center" xs={3}>
101100
<CopyTextButton
102-
label={t('third-step.btn-copy')}
101+
label={t('step.payment-method.bank.btn-copy')}
103102
text={bankAccountInfo.paymentReference}
104103
variant="contained"
105104
size="small"

0 commit comments

Comments
 (0)