Skip to content

Commit

Permalink
locales: Move email notification translations to common namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Jan 31, 2024
1 parent 50e46d8 commit ccdc0e9
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 72 deletions.
22 changes: 0 additions & 22 deletions public/locales/bg/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@
"save": "Запази",
"submit": "Изпрати",
"apply": "Кандидатствайте",
"subscribe": "Абонирай се за email известия за кампанията",
"subscribeFooter": "Абонирай се за бюлетина",
"subscribeGeneral": "Абонирайте се за email известия от Подкрепи.бг",
"subscribe-monthly-newsletter": "Месечен бюлтеин на Подкрепи.бг",
"subscribeGeneralSubtext": "Получавайте нашия месечен бюлетин, в който ще Ви информираме за най-интересните новини от Подкрепи.бг!",
"subscribe-general-monthly-newsletter": "Получавайте нашия месечен бюлетин, за да сте в час най-интересните новини от Подкрепи.бг!",
"subscribeGeneralButton": "Абонирайте се за новини",
"subscribe-general-newsletter-button": "Абонирайте се",
"support": "Дарете",
"support-cause-today": "Подкрепете кауза днес!",
"support-now": "Подкрепете сега",
Expand All @@ -97,20 +89,6 @@
"download": "Изтеглете",
"allow-donation-on-complete": "Разрешете дарения след достигане на сумата"
},
"subscribe": {
"confirm-sent": "Моля, <strong>активирай</strong> абонамента си от email-a, който ти изпратихме на {{email}}",
"confirm-subscribe": "Записа се успешно.",
"subscribe-title": "Абониране за новините на Подкрепи.бг",
"subscribe-campaign-title": "Абониране за новините по кампанията",
"subscribe-text-nonLoggedUser": "Моля, продължи като гост и въведи email адреса, на който желаеш да получаваш известия за тази кампания, или влез в профила си. Вписвайки се с потребителското си име и парола, ще можеш да управляваш абонамента си от своя Личен профил.",
"subscribe-text-nonLoggedUser-general": "Моля, продължи като гост и въведи email адреса, на който желаеш да получаваш известия от нас, или влез в профила си. Вписвайки се с потребителското си име и парола, ще можеш да управляваш абонамента си от своя Личен профил.",
"subscribe-text-loggedUser": "Моля, избери дали желаеш да получаваш новините за кампанията на email адреса, асоцииран с профила ти, или на алтернативен адрес:",
"subscribe-subtitle": "Искам да получавам новини и известия от Подкрепи.бг на този email адрес:",
"subscribe-campaign-subtTitle": "Искам да получавам новини за кампанията на този email адрес:",
"subscribe-button": "Запиши ме",
"profile-button": "На профилния",
"another-button": "На друг"
},
"campaign": {
"subheading": "Вашата подкрепа променя света и има значение. Всички подкрепящи чрез Подкрепи.бг са наши партньори в подпомагането на кампании за общността. Като щедър дарител Вие ставате важен партньор в подпомагането на кампания за нечие здраве или за успеха на кауза, която ви е близка до сърцето.",
"title": "Име на кампанията",
Expand Down
22 changes: 22 additions & 0 deletions public/locales/bg/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,28 @@
"cta": {
"more-information": "Повече информация"
},
"notifications": {
"subscribe": "Абонирай се за email известия за кампанията",
"subscribeFooter": "Абонирай се за бюлетина",
"subscribeGeneral": "Абонирайте се за email известия от Подкрепи.бг",
"subscribe-monthly-newsletter": "Месечен бюлтеин на Подкрепи.бг",
"subscribeGeneralSubtext": "Получавайте нашия месечен бюлетин, в който ще Ви информираме за най-интересните новини от Подкрепи.бг!",
"subscribe-general-monthly-newsletter": "Получавайте нашия месечен бюлетин, за да сте в час най-интересните новини от Подкрепи.бг!",
"subscribeGeneralButton": "Абонирайте се за новини",
"subscribe-general-newsletter-button": "Абонирайте се",
"confirm-sent": "Моля, <strong>активирай</strong> абонамента си от email-a, който ти изпратихме на {{email}}",
"confirm-subscribe": "Записа се успешно.",
"subscribe-title": "Абониране за новините на Подкрепи.бг",
"subscribe-campaign-title": "Абониране за новините по кампанията",
"subscribe-text-nonLoggedUser": "Моля, продължи като гост и въведи email адреса, на който желаеш да получаваш известия за тази кампания, или влез в профила си. Вписвайки се с потребителското си име и парола, ще можеш да управляваш абонамента си от своя Личен профил.",
"subscribe-text-nonLoggedUser-general": "Моля, продължи като гост и въведи email адреса, на който желаеш да получаваш известия от нас, или влез в профила си. Вписвайки се с потребителското си име и парола, ще можеш да управляваш абонамента си от своя Личен профил.",
"subscribe-text-loggedUser": "Моля, избери дали желаеш да получаваш новините за кампанията на email адреса, асоцииран с профила ти, или на алтернативен адрес:",
"subscribe-subtitle": "Искам да получавам новини и известия от Подкрепи.бг на този email адрес:",
"subscribe-campaign-subtTitle": "Искам да получавам новини за кампанията на този email адрес:",
"subscribe-button": "Запиши ме",
"profile-button": "На профилния",
"another-button": "На друг"
},
"cookieConsent": "Подкрепи.бг не използва бисквитки, освен тези от трети страни, нужни за аналитичните компоненти Google Analytics и HotJar. Приемането на бисквитките ще ни помогне да подобрим вашето потребителско преживяване.",
"cookieConsentButton": "Приемам",
"cookieRejectButton": "Отхвърлям"
Expand Down
22 changes: 0 additions & 22 deletions public/locales/en/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@
"save": "Save",
"submit": "Submit",
"apply": "Apply",
"subscribe": "Subscribe for email notifications for the campaign",
"subscribeFooter": "Subscribe for the newsletter",
"subscribeGeneral": "Subscribe for email notifications from Podkrepi.bg",
"subscribe-monthly-newsletter": "Monthly newsletter of Podkrepi.bg",
"subscribeGeneralSubtext": "Receive our monthly newsletter which will inform you about the most interesting news from Podkrepi.bg!!",
"subscribe-general-monthly-newsletter": "Receive our monthly newsletter so that you are aware of the most interesting news from Podkrepi.bg!",
"subscribeGeneralButton": "Subscribe for news",
"subscribe-general-newsletter-button": "Subscribe",
"support": "Donate",
"support-cause-today": "Support a campaign today!",
"support-now": "Support now",
Expand All @@ -97,20 +89,6 @@
"download": "Download",
"allow-donation-on-complete": "Allow donations after the amount is reached"
},
"subscribe": {
"confirm-sent": "Please, <bold>activate</bold> your subscription from the email that we sent to {{email}}",
"confirm-subscribe": "You subscribed successfully",
"subscribe-title": "Subscribe for news from Podkrepi.bg",
"subscribe-campaign-title": "Subscribe for news about the campaign",
"subscribe-text-nonLoggedUser": "Please, proceed as a guest and write down your email, on which you want to receive notifications for this campaign 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-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-button": "Subscribe me",
"profile-button": "On the profile one",
"another-button": "On another one"
},
"campaign": {
"subheading": "Your support for the world matters. All supporters through Podkrepi.bg are our partners in supporting the community campaign. As a generous benefactor, you become an important partner in supporting a campaign regarding someone's health or the success of a cause that is close to your heart.",
"title": "Campaign name",
Expand Down
23 changes: 23 additions & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,29 @@
"cta": {
"more-information": "More information"
},
"notifications": {
"subscribe": "Subscribe for email notifications for the campaign",
"subscribeFooter": "Subscribe for the newsletter",
"subscribeGeneral": "Subscribe for email notifications from Podkrepi.bg",
"subscribe-monthly-newsletter": "Monthly newsletter of Podkrepi.bg",
"subscribeGeneralSubtext": "Receive our monthly newsletter which will inform you about the most interesting news from Podkrepi.bg!!",
"subscribe-general-monthly-newsletter": "Receive our monthly newsletter so that you are aware of the most interesting news from Podkrepi.bg!",
"subscribeGeneralButton": "Subscribe for news",
"subscribe-general-newsletter-button": "Subscribe",
"confirm-sent": "Please, <bold>activate</bold> your subscription from the email that we sent to {{email}}",
"confirm-subscribe": "You subscribed successfully",
"subscribe-title": "Subscribe for news from Podkrepi.bg",
"subscribe-campaign-title": "Subscribe for news about the campaign",
"subscribe-text-nonLoggedUser": "Please, proceed as a guest and write down your email, on which you want to receive notifications for this campaign 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-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-button": "Subscribe me",
"profile-button": "On the profile one",
"another-button": "On another one"
},

"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.",
"cookieConsentButton": "Accept",
"cookieRejectButton": "Reject"
Expand Down
2 changes: 1 addition & 1 deletion src/components/client/campaigns/CampaignDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function CampaignDetails({ campaign }: Props) {
cursor="pointer"
/>
<Typography onClick={() => setSubscribeOpen(true)} className={classes.subscribeLink}>
{t('campaigns:cta.subscribe')}
{t('common:notifications.subscribe')}
</Typography>
</Grid>
<Grid item xs={12} style={{ paddingTop: '20px' }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ export default function PlatformStatisticsSection() {
{subscribeIsOpen && <RenderSubscribeModal setOpen={setSubscribeOpen} />}
<Grid item xs={12} display="flex" sx={{ mt: 3.5, mb: 0.5 }}>
<EmailIcon color="primary" fontSize="small" sx={{ mr: 0.5 }} cursor="pointer" />
<SubscribeHeading>{t('campaigns:cta.subscribeGeneral')}</SubscribeHeading>
<SubscribeHeading>{t('common:notifications.subscribeGeneral')}</SubscribeHeading>
</Grid>
<Subtitle>{t('campaigns:cta.subscribeGeneralSubtext')}</Subtitle>
<Subtitle>{t('common:notifications.subscribeGeneralSubtext')}</Subtitle>
<SubscribeButton
onClick={() => setSubscribeOpen(true)}
variant="contained"
endIcon={<ArrowForwardSharp />}>
{t('campaigns:cta.subscribeGeneralButton')}
{t('common:notifications.subscribeGeneralButton')}
</SubscribeButton>
</Grid>
<Statistics />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ const SubscriptionSection = () => {
cursor="pointer"
/>
<SubscribeHeading onClick={() => setSubscribeOpen(true)}>
{t('campaigns:cta.subscribe-monthly-newsletter')}
{t('common:notifications.subscribe-monthly-newsletter')}
</SubscribeHeading>
</Grid>
<Subtitle sx={{ display: 'block', padding: theme.spacing(1.25) }}>
{t('campaigns:cta.subscribe-general-monthly-newsletter')}
{t('common:notifications.subscribe-general-monthly-newsletter')}
</Subtitle>
<SubscribeButton onClick={() => setSubscribeOpen(true)} variant="contained">
{t('campaigns:cta.subscribe-general-newsletter-button')}
{t('common:notifications.subscribe-general-newsletter-button')}
</SubscribeButton>
</Grid>
</Root>
Expand Down
2 changes: 1 addition & 1 deletion src/components/client/layout/Footer/Subscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Subscription() {
cursor="pointer"
/>
<SubscriptionTitle onClick={() => setSubscribeOpen(true)}>
{t('campaigns:cta.subscribeFooter')}
{t('common:components.footer.subscribe')}
</SubscriptionTitle>
</Grid>
)
Expand Down
20 changes: 10 additions & 10 deletions src/components/client/notifications/CampaignSubscribeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
<StyledGrid container spacing={2}>
<Grid item xs={12}>
<Typography variant="subtitle2">
{t('campaigns:subscribe.subscribe-campaign-subtTitle')}
{t('common:notifications.subscribe-campaign-subtTitle')}
</Typography>
</Grid>
<Grid item xs={12} textAlign="center">
Expand All @@ -120,7 +120,7 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
<SubmitButton
sx={{ width: '40%' }}
className={classes.subscribeBtn}
label="campaigns:subscribe.subscribe-button"
label="common:notifications.subscribe-button"
loading={loading}
/>
</Grid>
Expand Down Expand Up @@ -159,15 +159,15 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
<React.Fragment>
<EmailIcon color="primary" sx={{ fontSize: '64px' }} />
<DialogTitle style={{ textAlign: 'center', width: '100%' }}>
{t('campaigns:subscribe.subscribe-campaign-title')}
{t('common:notifications.subscribe-campaign-title')}
</DialogTitle>
<Grid container direction="column" component="section">
<StyledGrid container spacing={2}>
<Grid item xs={12}>
<Typography variant="subtitle2" textAlign="center">
{status !== 'authenticated'
? t('campaigns:subscribe.subscribe-text-nonLoggedUser')
: t('campaigns:subscribe.subscribe-text-loggedUser')}
? t('common:notifications.subscribe-text-nonLoggedUser')
: t('common:notifications.subscribe-text-loggedUser')}
</Typography>
</Grid>
<Grid item xs={12} display="flex" justifyContent="space-evenly">
Expand All @@ -178,7 +178,7 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
label={
status !== 'authenticated'
? 'auth:cta.login'
: 'campaigns:subscribe.profile-button'
: 'common:notifications.profile-button'
}
loading={loading}
onClick={() => sendOnProfileEmail(status)}
Expand All @@ -191,7 +191,7 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
label={
status !== 'authenticated'
? 'auth:cta.guest'
: 'campaigns:subscribe.another-button'
: 'common:notifications.another-button'
}
loading={loading}
onClick={() => openAsGuest()}
Expand Down Expand Up @@ -220,7 +220,7 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
<React.Fragment>
<EmailIcon color="primary" sx={{ fontSize: '64px' }} />
<DialogTitle style={{ textAlign: 'center', width: '100%' }}>
{t('campaigns:subscribe.subscribe-campaign-title')}
{t('common:notifications.subscribe-campaign-title')}
</DialogTitle>
<Grid container direction="column" component="section" sx={{ textAlign: 'center' }}>
<NonAuthenticatedForm />
Expand All @@ -236,13 +236,13 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda
<Typography
variant="h5"
style={{ textAlign: 'center', width: '100%', color: '#03C03C' }}>
{t('campaigns:subscribe.confirm-subscribe')}
{t('common:notifications.confirm-subscribe')}
</Typography>
</DialogTitle>
<Typography>
<Trans
t={t}
i18nKey="campaigns:subscribe.confirm-sent"
i18nKey="common:notifications.confirm-sent"
values={{ email: email }}
/>
</Typography>
Expand Down
Loading

0 comments on commit ccdc0e9

Please sign in to comment.