Skip to content

Commit

Permalink
Update Subscription modal texts
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Jun 23, 2024
1 parent f3a5aea commit 1333c4c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion public/locales/bg/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"fields": {
"email": "Email",
"email-descriptive": "Въведи email адрес",
"password": "Парола",
"confirm-password": "Потвърждение на парола",
"first-name": "Име",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/bg/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@
"subscribe-text-nonLoggedUser-general": "Моля, продължете като гост и въведете email адреса, на който желаете да получавате известия от нас, или влезте в профила си. Вписвайки се с потребителското си име и парола, ще можете да управлявате абонамента си от своя Личен профил.",
"subscribe-text-loggedUser": "Моля, изберете дали желаете да получавате новините за кампанията на email адреса, асоцииран с профила Ви, или на алтернативен адрес:",
"subscribe-subtitle": "Искам да получавам новини и известия от Подкрепи.бг на този email адрес:",
"subscribe-campaign-subtTitle": "Искам да получавам новини за кампанията на този email адрес:"
"subscribe-campaign-subtTitle": "Искам да получавам новини за кампанията на този email адрес:",
"email-descriptive": "Въведи email адрес",
"agree-with-newsletter": "Съгласявам се да получавам известия.",
"agree-with-newsletter-campaign": "Съгласявам се да получавам новини за тази кампания и известия от Подкрепи.бг."
},
"cookieConsent": "Подкрепи.бг не използва бисквитки, освен тези от трети страни, нужни за аналитичните компоненти Google Analytics и HotJar. Приемането на бисквитките ще ни помогне да подобрим вашето потребителско преживяване.",
"cookieConsentButton": "Приемам",
Expand Down
4 changes: 1 addition & 3 deletions public/locales/bg/validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
"terms-of-use": "Моля, приемете oбщите условия",
"terms-of-service": "Моля, приемете политиката за защита на личните данни",
"agree-with": "Съгласявам се с",
"agree-with-newsletter": "Съгласявам се да получавам известия.",
"agree-with-newsletter-campaign": "Съгласявам се да получавам новини за тази кампания и известия от Подкрепи.бг *",
"informed-agree-with": "Запознат съм и се съгласявам с",
"terms-and-conditions": "общите условия",
"gdpr": "политиката за защита на личните данни",
"gdpr": "политиката за защита на личните данни.",
"newsletter": "Моля дайте своето съгласие",
"legal-entity": "Юридическо лице",
"unique-field-violation": "Полето `{1}` със тази стойност вече съществува в платформата.",
Expand Down
1 change: 0 additions & 1 deletion public/locales/en/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
},
"fields": {
"email": "Email",
"email-descriptive": "Fill in your email",
"password": "Password",
"confirm-password": "Confirm Password",
"first-name": "First name",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@
"subscribe-text-nonLoggedUser-general": "Please, proceed as a guest and write down your email, on which you want to receive notifications from us or you can log in. If you log in with your and password you will be able to manage your subscription from your Personal profile",
"subscribe-text-loggedUser": "Please, choose if you want to receive the news about the campaign on your profile email or on another one:",
"subscribe-subtitle": "I want to receive news and notifications from Podkrepi.bg on this email:",
"subscribe-campaign-subtTitle": "I want to receive news about the campaign on this email:"
"subscribe-campaign-subtTitle": "I want to receive news about the campaign on this email:",
"email-descriptive": "Fill in your email",
"agree-with-newsletter": "I agree to receive news.",
"agree-with-newsletter-campaign": "I agree to receive news about this campaign and news by Podkrepi.bg."
},

"cookieConsent": "Podkrepi.bg doesn't use cookies, except the third-party cookies required for the analytics components Google Analytics and HotJar. Accepting the cookies will help us improve your user experience.",
Expand Down
2 changes: 0 additions & 2 deletions public/locales/en/validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"terms-of-use": "Please accept the Terms and Conditions",
"terms-of-service": "Please accept the GDPR policy",
"agree-with": "I agree to the",
"agree-with-newsletter": "I agree to receive news",
"agree-with-newsletter-campaign": "I agree to receive news about this campaign and news by Podkrepi.bg *",
"informed-agree-with": "I understand and I agree to the",
"terms-and-conditions": "Terms and Conditions",
"gdpr": "General Data Protection Regulation (GDPR)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function RenderSubscribeModal({ setOpen }: ModalProps) {
</Grid>
<Grid item xs={12} textAlign="center">
<EmailField
label={t('auth:fields.email-descriptive')}
label={t('common:notifications.email-descriptive')}
name="email"
sx={{ width: '70%' }}
/>
Expand Down
8 changes: 4 additions & 4 deletions src/components/common/form/AcceptNewsletterField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ export type AcceptNewsLetterFieldProps = {
}

export function AcceptNewsLetterField({ name }: AcceptNewsLetterFieldProps) {
const { t } = useTranslation('validation')
const { t } = useTranslation('common')
return (
<CheckboxField
name={name}
label={
<Typography textAlign="start" variant="body2">
{t('agree-with-newsletter')}
{t('notifications.agree-with-newsletter')}
</Typography>
}
/>
)
}

export function AcceptNewsLetterFieldCampaign({ name }: AcceptNewsLetterFieldProps) {
const { t } = useTranslation('validation')
const { t } = useTranslation('common')
return (
<CheckboxField
name={name}
label={
<Typography textAlign="start" variant="body2">
{t('agree-with-newsletter-campaign')}
{t('notifications.agree-with-newsletter-campaign')}
</Typography>
}
/>
Expand Down

0 comments on commit 1333c4c

Please sign in to comment.