Skip to content

Commit 5e47953

Browse files
author
mildrette
committed
added defualt key for translation
1 parent 4e87637 commit 5e47953

11 files changed

Lines changed: 40 additions & 29 deletions

File tree

public/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"link5": "Documentation",
1010
"link6": "Features"
1111
},
12+
"loader": "Loading Please Wait",
1213
"header": "Explore SMSWithoutBorders",
1314
"About": {
1415
"About-title": "Open Source | Research",

public/locales/es/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"link5": "Documentación",
1010
"link6": "Características"
1111
},
12+
"loader": "Cargando, por favor espere",
1213
"header": "Explorar SMSWithoutBorders",
1314
"About": {
1415
"About-title": "Código abierto | Investigación",

public/locales/fa/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"link5": "مستندات",
1010
"link6": "ویژگی‌ها"
1111
},
12+
"loader": "در حال بارگذاری، لطفاً صبر کنید",
1213
"header": "کاوش در SMSWithoutBorders",
1314
"About": {
1415
"About-title": "منبع باز | پژوهش",

public/locales/fr/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"link5": "Documentation",
1010
"link6": "Fonctionnalités"
1111
},
12+
"loader": "Chargement, veuillez patienter",
1213
"header": "Explorer SMSWithoutBorders",
1314
"About": {
1415
"About-title": "Open Source | Recherche",

src/Components/About.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function FlexRowTwoColumns() {
4141
fontFamily: "'Ubuntu', 'Roboto'",
4242
}}
4343
>
44-
{t("header")}
44+
{t("header", { defaultValue: "Explore SMSWithoutBorders" })}
4545
</Typography>
4646
</Box>
4747

@@ -74,7 +74,7 @@ export default function FlexRowTwoColumns() {
7474
mt: 1,
7575
}}
7676
>
77-
<p>{t("About.description")}</p>
77+
<p>{t("About.description", { defaultValue: "SMSWithoutBorders(SWOB) is dedicated to researching, developing and promoting secure and accessible communication tools that function even without an internet connection." })}</p>
7878
</Typography>
7979
</Box>
8080

@@ -98,8 +98,8 @@ export default function FlexRowTwoColumns() {
9898
mt: 1,
9999
}}
100100
>
101-
<p>{t("About.description1")}</p>
102-
<p>{t("About.description2")}</p>
101+
<p>{t("About.description1", { defaultValue: "The development includes mobile apps for various platforms such as Android, iOS and Linux systems. Some of the work also includes white papers on topics such as cryptography, communications and internet freedom." })}</p>
102+
<p>{t("About.description2", { defaultValue: "Our journey toward achieving our mission began in 2021 with the development of the first Android version of RelaySMS. We have come far since then, with support for more platforms and many more apps." })}</p>
103103
</Typography>
104104
</Box>
105105
</Box>
@@ -128,7 +128,12 @@ export default function FlexRowTwoColumns() {
128128
},
129129
}}
130130
>
131-
<p>{parse(t("About.description3"))}</p>
131+
{parse(
132+
t("About.description3", {
133+
defaultValue:
134+
"We publish our research as frequently as possible on our blog and make announcements via our social media outlets. SMSWithoutBorders is a project started by the team at <a href='https://Afkanerd.com' class='afkanerd'>Afkanerd</a>."
135+
})
136+
)}
132137
</Typography>
133138
</Box>
134139
</Box>

src/Components/DocsNavbar.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ const Navbar = () => {
2828
const isFarsi = i18n.language === "fa";
2929

3030
const links = [
31-
{ label: t("navbar.link"), path: "/" },
32-
{ label: t("navbar.link4"), path: "/privacy-policy" },
33-
{ label: t("navbar.link5"), href: "https://docs.smswithoutborders.com/" }
31+
{ label: t("navbar.link", "Home"), path: "/" },
32+
{ label: t("navbar.link4", "Privacy Policy"), path: "/privacy-policy" },
33+
{ label: t("navbar.link5", "Documentation"), href: "https://docs.smswithoutborders.com/" }
34+
3435
];
3536

3637
const [drawerOpen, setDrawerOpen] = useState(false);

src/Components/Landing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Landing = () => {
6060
fontFamily: "'Roboto', 'Ubuntu'"
6161
}}
6262
>
63-
{t("About.About-title", "Open Source | Research")}
63+
{t("About.About-title", { defaultValue: "Open Source | Research" })}
6464
</Typography>
6565
</Box>
6666
);

src/Components/Navbar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ const Navbar = () => {
2828
const isFarsi = i18n.language === "fa";
2929

3030
const links = [
31-
{ label: t("navbar.link1"), href: "https://blog.smswithoutborders.com/" },
32-
{ label: t("navbar.link6"), href: "/Features" },
33-
{ label: t("navbar.link5"), href: "https://docs.smswithoutborders.com/" },
34-
{ label: t("navbar.link2"), href: "https://relay.smswithoutborders.com/" },
35-
{ label: t("navbar.link3"), href: "https://Dekusms.com/" },
36-
{ label: t("navbar.link4"), href: "/privacy-policy" }
31+
{ label: t("navbar.link1", "Blog"), href: "https://blog.smswithoutborders.com/" },
32+
{ label: t("navbar.link6", "Features"), href: "/Features" },
33+
{ label: t("navbar.link5", "Documentation"), href: "https://docs.smswithoutborders.com/" },
34+
{ label: t("navbar.link2", "RelaySMS"), href: "https://relay.smswithoutborders.com/" },
35+
{ label: t("navbar.link3", "DekuSMS"), href: "https://Dekusms.com/" },
36+
{ label: t("navbar.link4", "Privacy Policy"), href: "/privacy-policy" }
3737
];
3838

3939
const [drawerOpen, setDrawerOpen] = useState(false);

src/Components/Partner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function Partner() {
8484
fontFamily: "'Roboto', 'Ubuntu'"
8585
}}
8686
>
87-
{t("Sponsor.SponsorT")}
87+
{t("Sponsor.SponsorT", { defaultValue: " Supporting Organizations" })}
8888
</Typography>
8989

9090
<Typography
@@ -100,7 +100,7 @@ function Partner() {
100100
mt: 1,
101101
}}
102102
>
103-
{t("Sponsor.Sponsor-subheader")}
103+
{t("Sponsor.Sponsor-subheader", { defaultValue: "This Organizations helps keep SMSWithoutBorders Afloat" })}
104104
</Typography>
105105
</Box>
106106

src/Components/Project.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Projects = () => {
4747
fontFamily: "'Roboto', 'Ubuntu'"
4848
}}
4949
>
50-
{t("projects_title")}
50+
{t("projects_title", { defaultValue: "Innovative Projects Under SWOB" })}
5151
</Typography>
5252

5353
<Typography
@@ -63,7 +63,7 @@ const Projects = () => {
6363
mt: 1,
6464
}}
6565
>
66-
{t("projects_subtitle")}
66+
{t("projects_subtitle", { defaultValue: "SMSWithoutBorders Commits to buiding OpenSource Tools That Aid Free speech and Communication" })}
6767
</Typography>
6868
</Box>
6969

@@ -108,7 +108,7 @@ const Projects = () => {
108108
}}
109109
>
110110
<Chip
111-
label={t("project1.keyPoint1")}
111+
label={t("project1.keyPoint1", { defaultValue: "SMS" })}
112112
sx={{
113113
backgroundColor: "#FF8614",
114114
color: "#02334bff",
@@ -117,7 +117,7 @@ const Projects = () => {
117117
}}
118118
/>
119119
<Chip
120-
label={t("project1.keyPoint2")}
120+
label={t("project1.keyPoint2", { defaultValue: "Internet Freedom" })}
121121
sx={{
122122
backgroundColor: "#FF8614",
123123
color: "#02334bff",
@@ -175,7 +175,7 @@ const Projects = () => {
175175
mt: 1,
176176
}}
177177
>
178-
{t("project1.description")}
178+
{t("project1.description", { defaultValue: "RelaySMS uses SMS messaging to communicate with online platforms without needing an internet connection. The users can grant access to their online platforms which would be used to act on their behalf using SMS messaging. The access granted, messages being sent from the app, and how they get published online are secured with strong up-to-date cryptographic and security practices." })}
179179
</Typography>
180180
</CardContent>
181181
<CardActions sx={{
@@ -195,7 +195,7 @@ const Projects = () => {
195195
}
196196
}}
197197
>
198-
{t("project1.read_more")}
198+
{t("project1.read_more", { defaultValue: "Visit Website" })}
199199
<ArrowOutwardIcon fontSize="small" sx={{ ml: 0.5 }} />
200200
</Button>
201201
</CardActions>
@@ -233,7 +233,7 @@ const Projects = () => {
233233
}}
234234
>
235235
<Chip
236-
label={t("project2.keyPoint1")}
236+
label={t("project2.keyPoint1", { defaultValue: "SMS" })}
237237
sx={{
238238
backgroundColor: "#2ED3B7",
239239
color: "#02334bff",
@@ -242,7 +242,7 @@ const Projects = () => {
242242
}}
243243
/>
244244
<Chip
245-
label={t("project2.keyPoint2")}
245+
label={t("project2.keyPoint2", { defaultValue: "Privacy" })}
246246
sx={{
247247
backgroundColor: "#2ED3B7",
248248
color: "#02334bff",
@@ -301,7 +301,7 @@ const Projects = () => {
301301
mt: 1,
302302
}}
303303
>
304-
{t("project2.description")}
304+
{t("project2.description", { defaultValue: "DekuSMS is an Android SMS messaging app. It enables 2 users of the app to communicate using end-to-end encryption over SMS messages. The app also contains message forwarding abilities supporting protocols such as SMTP, FTP, and AMQP. The app is built to integrate with RabbitMQ allowing users with messaging queues to set up and make remote communication requests to their apps." })}
305305
</Typography>
306306
</CardContent>
307307
<CardActions sx={{
@@ -321,7 +321,7 @@ const Projects = () => {
321321
}
322322
}}
323323
>
324-
{t("project2.read_more")}
324+
{t("project2.read_more", { defaultValue: "Visit Website" })}
325325
<ArrowOutwardIcon fontSize="small" sx={{ ml: 0.5 }} />
326326
</Button>
327327
</CardActions>

0 commit comments

Comments
 (0)