Skip to content

[Fix] Split Note Copy Into Two Translates #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions public/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,15 @@
"sponsorBody": "All money and support raised from sponsorships are invested in improving the bimonthly events and the quality of the presented content. No member of the staff benefits economically from the support; all tasks performed by the team are carried out on a non-profit basis. All income is invested entirely for the benefit of the community.",
"offer": "What do we offer in return?",
"offerRights": "Sponsors have the right to:",
"socialMentions": "Mentions on social networks.",
"communityPagePosts": "Posts from the community page.",
"sharePosts": "Sharing a certain number of publications on our social networks.",
"promoteContent": "5-minute slot each session to promote vacancies, events, etc.",
"eventPresence": "Presence at the beginning and end of the event, as well as on all flyers related to the monthly session.",
"benefitsNote": "Over time, we have noticed that the benefits from sponsorship are even more effective when individuals (employees) from the companies also get involved as part of WDT, as their message reaches more organically.",
"closingNote": "To conclude, we would like to express that it would give us great pleasure to have your support in continuing to grow our community. 💙",
"socialMentions": "Mentions on social media and posts from our community page.",
"sharePosts": "Space to share posts on our social networks.",
"promoteContent": "5 minutes in each session to promote job openings, events, etc.",
"eventPresence": "Prominent presence at the beginning and end of each event, as well as on all flyers for the monthly session.",
"note": "Note:",
"benefitsNote": "We have noticed that sponsorship benefits are more effective when employees of the companies also get involved in WDT, as their message reaches more organically.",
"closingNote": "Thank you in advance for your support in continuing to grow our community. 💙",
"communityHeader": "“We are a community”",
"note": "NOTE:",
"adrianaReyes": " - Adriana Reyes.",
"gallery": "Gallery"
}
}
}
4 changes: 2 additions & 2 deletions public/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
"sharePosts": "Espacio para compartir publicaciones en nuestras redes sociales.",
"promoteContent": "5 minutos en cada sesión para promover vacantes, eventos, etc.",
"eventPresence": "Presencia destacada al inicio y final de cada evento, así como en todos los flyers de la sesión mensual.",
"benefitsNote": "Nota: Hemos notado que los beneficios del patrocinio son más efectivos cuando empleados de las empresas también se involucran en WDT, ya que su mensaje llega de manera más orgánica.",
"note": "Nota:",
"benefitsNote": "Hemos notado que los beneficios del patrocinio son más efectivos cuando empleados de las empresas también se involucran en WDT, ya que su mensaje llega de manera más orgánica.",
"closingNote": "Agradecemos de antemano su apoyo para seguir creciendo nuestra comunidad. 💙",
"communityHeader": "“Somos comunidad”",
"note": "NOTA:",
"adrianaReyes": " - Adriana Reyes.",
"gallery": "Galeria"
}
Expand Down
5 changes: 1 addition & 4 deletions src/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ import Footer from './Footer';

function About() {
const { t } = useTranslation()
const benefitsNote = t("aboutUs.benefitsNote");
const noteText = benefitsNote.split(":")[0] + ":";
const restOfText = benefitsNote.split(":").slice(1).join(":").trim();

return (
<>
Expand Down Expand Up @@ -101,7 +98,7 @@ function About() {
</List>

<Typography sx={{ mb: 2 }}>
<strong>{noteText}</strong> {restOfText}
<strong>{t("aboutUs.note")}</strong> {t("aboutUs.benefitsNote")}
</Typography>

<Typography>{t("aboutUs.closingNote")}</Typography>
Expand Down