Skip to content

Commit 9e9d5df

Browse files
AlexandreAguidoRokt33r
authored andcommitted
Add newsletter text to locale files
1 parent cfdc170 commit 9e9d5df

File tree

13 files changed

+60
-3
lines changed

13 files changed

+60
-3
lines changed

homepage/components/organisms/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const HeroSection = () => {
197197
fontSize={[3]}
198198
fontWeight={'normal'}
199199
>
200-
Stay up to date with our latest news and products
200+
{t('newsletter.title')}
201201
</Text>
202202
<SubscribeNewsLettersForm />
203203
</Box>

homepage/components/organisms/SubscribeNewsLettersForm.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState, useCallback, FormEvent, ChangeEvent } from 'react'
22
import ky from 'ky-universal'
3+
import { useTranslation } from 'react-i18next'
34

45
import styled from '../../lib/styled'
56
import { SpaceProps, space } from 'styled-system'
@@ -28,6 +29,7 @@ const SubscribeNewsLettersForm = () => {
2829
const [status, setStatus] = useState<Status>('idle')
2930
const [errorMessage, setErrorMessage] = useState<string | null>(null)
3031
const [email, setEmail] = useState('')
32+
const { t } = useTranslation()
3133

3234
const subscribe = useCallback(
3335
async (event: FormEvent<HTMLFormElement>) => {
@@ -64,7 +66,7 @@ const SubscribeNewsLettersForm = () => {
6466
<>
6567
{status === 'done' ? (
6668
<FlexBox justifyContent='center' mt={2}>
67-
<Text as='p'>Thanks for the subscription!</Text>
69+
<Text as='p'>{t('newsletter.subscribed')}</Text>
6870
</FlexBox>
6971
) : (
7072
<>
@@ -85,7 +87,7 @@ const SubscribeNewsLettersForm = () => {
8587
fontSize={1}
8688
disabled={status === 'sending'}
8789
>
88-
Subscribe
90+
{t('newsletter.buttonText')}
8991
</Button>
9092
</div>
9193
</form>

homepage/locales/de.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
subtitle:
2020
"Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2121
},
22+
newsletter: {
23+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
// buttonText: 'Subscribe',
25+
// subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
// title: 'Boost Hub, the team version of Boost Note',
2429
// description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

homepage/locales/en.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
subtitle:
2020
"Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2121
},
22+
newsletter: {
23+
title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
buttonText: 'Subscribe',
25+
subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
title: 'Boost Hub, the team version of Boost Note',
2429
description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

homepage/locales/es.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export default {
1818
// subtitle:
1919
// "Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2020
},
21+
newsletter: {
22+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
23+
// buttonText: 'Subscribe',
24+
// subscribed: 'Thanks for the subscription!'
25+
},
2126
boostHub: {
2227
// title: 'Boost Hub, the team version of Boost Note',
2328
// description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

homepage/locales/fr.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
subtitle:
2020
"Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2121
},
22+
newsletter: {
23+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
// buttonText: 'Subscribe',
25+
// subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
// title: 'Boost Hub, the team version of Boost Note',
2429
// description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

homepage/locales/ja.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
// subtitle:
2020
// "Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2121
},
22+
newsletter: {
23+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
// buttonText: 'Subscribe',
25+
// subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
// title: 'Boost Hub, the team version of Boost Note',
2429
// description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

homepage/locales/ko.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
// subtitle:
2020
// "Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2121
},
22+
newsletter: {
23+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
// buttonText: 'Subscribe',
25+
// subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
// title: 'Boost Hub, the team version of Boost Note',
2429
// description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

homepage/locales/nl.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
subtitle:
2020
'Een intuïtieve en stijlvolle markdown notitie-app voor ontwikkelaars. Volledig open-source.',
2121
},
22+
newsletter: {
23+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
// buttonText: 'Subscribe',
25+
// subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
title: 'Kent u Boost Hub al?',
2429
description:

homepage/locales/pt.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default {
1919
// subtitle:
2020
// "Boost Note is an intuitive and stylish markdown editor. It's fully open-source, and used by 1 million developers!",
2121
},
22+
newsletter: {
23+
// title: 'Also, please join our newsletter to get the latest news and update notes.',
24+
// buttonText: 'Subscribe',
25+
// subscribed: 'Thanks for the subscription!'
26+
},
2227
boostHub: {
2328
// title: 'Boost Hub, the team version of Boost Note',
2429
// description1: 'We’ve developed a collaborative workspace app called “Boost Hub” for developer teams.',

0 commit comments

Comments
 (0)