Skip to content

Commit

Permalink
Footer translation to spanish part2 (#155)
Browse files Browse the repository at this point in the history
* landing page and subscribe footer translated to spanish

* footer translation to spanish part 2
  • Loading branch information
Turupawn authored Jan 15, 2024
1 parent 1521c0c commit 50cbc5a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 11 deletions.
19 changes: 19 additions & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,25 @@
"additionalResources": "Additional Resources"
}
},
"footer": {
"aboutScroll": {
"title": "About Scroll",
"bugBounty": "Bug Bounty",
"joinUs": "Join Us",
"healthStatus": "Health Status",
"privacyPolicy": "Privacy Policy",
"termsAndConditions": "Terms and Conditions"
},
"resources": {
"title": "Resources",
"blog": "Blog",
"documentation": "Documentation",
"pressKit": "Press Kit"
},
"followUs": {
"title": "Follow Us"
}
},
"notTranslated": {
"notTranslated": "This page has not been translated yet."
}
Expand Down
19 changes: 19 additions & 0 deletions public/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,25 @@
"additionalResources": "Recursos Adicionales"
}
},
"footer": {
"aboutScroll": {
"title": "Acerca de Scroll",
"bugBounty": "Cazarecompensas de bugs",
"joinUs": "Únete a nosotros",
"healthStatus": "Estado de servicios",
"privacyPolicy": "Políticas de privacidad",
"termsAndConditions": "Terminos y condiciones"
},
"resources": {
"title": "Recursos",
"blog": "Blog",
"documentation": "Documentación",
"pressKit": "Kit de Prensa"
},
"followUs": {
"title": "Follow Us"
}
},
"notTranslated": {
"notTranslated": "Esta página no ha sido traducida aún."
}
Expand Down
7 changes: 4 additions & 3 deletions src/components/Footer/PureFooter/PureFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState, useEffect } from "preact/hooks"
import { aboutList, mediaList, resourceList } from "../helper.tsx"
import styles from "./PureFooter.module.css"
import { t } from "i18next"

const Footer = () => {
return (
Expand All @@ -9,7 +10,7 @@ const Footer = () => {
<img src="/scroll-white.svg" style={{ width: "80px" }} />
</a>
<div className={styles.about}>
<p className={styles.title}>About Scroll</p>
<p className={styles.title}>{ t("footer.aboutScroll.title") }</p>
<ul>
{aboutList.map((item) => (
<li key={item.name} className={styles.content}>
Expand All @@ -19,7 +20,7 @@ const Footer = () => {
</ul>
</div>
<div className={styles.resource}>
<p className={styles.title}>Resources</p>
<p className={styles.title}>{ t("footer.resources.title") }</p>
<ul>
{resourceList.map((item) => (
<li key={item.name} className={styles.content}>
Expand All @@ -30,7 +31,7 @@ const Footer = () => {
</div>

<div className={styles.follow}>
<p className={styles.title}>Follow Us</p>
<p className={styles.title}>{ t("footer.followUs.title") }</p>
<div>
{mediaList.map((item) => (
<a external href={item.href} key={item.name} target="_blank">
Expand Down
17 changes: 9 additions & 8 deletions src/components/Footer/helper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react"
import { t } from "i18next"

const DiscordIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => (
<svg width="19" height="14" viewBox="0 0 19 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
Expand All @@ -23,38 +24,38 @@ const TwitterIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => (

export const aboutList = [
{
name: "Bug Bounty",
name: t("footer.aboutScroll.bugBounty"),
href: "https://immunefi.com/bounty/scroll/",
},
{
name: "Join Us",
name: t("footer.aboutScroll.joinUs"),
href: "https://jobs.lever.co/ScrollFoundation",
},
{
name: "Health Status",
name: t("footer.aboutScroll.healthStatus"),
href: "https://status.scroll.io/",
},
{
name: "Privacy Policy",
name: t("footer.aboutScroll.privacyPolicy"),
href: "https://scroll.io/privacy-policy",
},
{
name: "Terms and Conditions",
name: t("footer.aboutScroll.termsAndConditions"),
href: "https://scroll.io/terms-and-conditions",
},
]

export const resourceList = [
{
name: "Blog",
name: t("footer.resources.blog"),
href: "https://scroll.io/blog",
},
{
name: "Documentation",
name: t("footer.resources.documentation"),
href: "https://docs.scroll.io/",
},
{
name: "Press Kit",
name: t("footer.resources.pressKit"),
href: "https://scrollzkp.notion.site/Scroll-Rebrand-Assets-5bb83465f56f40989c4f772b39ed3a06",
},
]
Expand Down

0 comments on commit 50cbc5a

Please sign in to comment.