Skip to content

Commit

Permalink
chore: ajust translations menu and footer, add new categorie blog
Browse files Browse the repository at this point in the history
  • Loading branch information
AldemirLucas committed Dec 10, 2024
1 parent 27a893a commit a0ecd62
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 28 deletions.
15 changes: 9 additions & 6 deletions next/components/molecules/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,23 @@ export default function Footer({ template, ocult = false }) {
</SectionCategories>
)}

<SectionCategories title={t('footer.tutorials.title')} marginBottom={isMobileMod() && "24px !important"}>
<SectionCategories title={t('footer.resources.title')} marginBottom={isMobileMod() && "24px !important"}>
<FooterLink href={
locale === "en" ? "https://basedosdados.github.io/sdk/en" :
locale === "es" ? "https://basedosdados.github.io/sdk/es" :
"https://basedosdados.github.io/sdk"
}
>
{t('footer.tutorials.documentation')}
{t('footer.resources.documentation')}
</FooterLink>
<FooterLink href="https://www.youtube.com/watch?v=nGM2OwTUY_M&list=PLu5pyM8QY6hg3GpNCyCtSS3sUi4Jo8Pir">
{t('footer.tutorials.youtubeVideos')}
{t('footer.resources.youtubeVideos')}
</FooterLink>
<FooterLink href="/blog">
{t('footer.resources.blog')}
</FooterLink>
<FooterLink href="/faq">
{t('footer.resources.faq')}
</FooterLink>
</SectionCategories>

Expand All @@ -268,9 +274,6 @@ export default function Footer({ template, ocult = false }) {
</FooterLink>
</>
)}
<FooterLink href="/faq">
{t('footer.institutional.faq')}
</FooterLink>
<FooterLink target="_self" href="/terms">
{t('footer.institutional.termsAndPrivacy')}
</FooterLink>
Expand Down
18 changes: 9 additions & 9 deletions next/components/molecules/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,17 +1021,17 @@ export default function MenuNav({ simpleTemplate = false, userTemplate = false }
},
],
[t('prices')]: "/prices",
[t('tutorials')]: [
[t('resources')]: [
{name: [t('documentation')], href: "https://basedosdados.github.io/sdk"},
{name: [t('youtube_videos')], href: "https://www.youtube.com/c/BasedosDados/featured"},
{name: "Blog", href: "/blog"},
{name: [t('faq')], href: "/faq"}
],
Blog: "/blog",
[t('institutional')]: [
{name: [t('about_us')], href: "/about-us"},
{name: [t('transparency')], href: "/transparency"},
{name: [t('newsletter')], href: "https://info.basedosdados.org/newsletter"},
{name: [t('jobs')], href: "https://info.basedosdados.org/carreiras"},
{name: [t('faq')], href: "/faq"},
],
[t('contact')]: "/contact",
Button: []
Expand All @@ -1049,15 +1049,15 @@ export default function MenuNav({ simpleTemplate = false, userTemplate = false }
}
],
[t('prices')]: "/prices",
[t('tutorials')]: [
[t('resources')]: [
{name: [t('documentation')], href: "https://basedosdados.github.io/sdk/en"},
{name: [t('youtube_videos')], href: "https://www.youtube.com/c/BasedosDados/featured"},
{name: "Blog", href: "/blog"},
{name: [t('faq')], href: "/faq"}
],
Blog: "/blog",
[t('institutional')]: [
{name: [t('about_us')], href: "/about-us"},
{name: [t('transparency')], href: "/transparency"},
{name: [t('faq')], href: "/faq"},
],
[t('contact')]: "/contact",
Button: []
Expand All @@ -1075,15 +1075,15 @@ export default function MenuNav({ simpleTemplate = false, userTemplate = false }
}
],
[t('prices')]: "/prices",
[t('tutorials')]: [
[t('resources')]: [
{name: [t('documentation')], href: "https://basedosdados.github.io/sdk/es"},
{name: [t('youtube_videos')], href: "https://www.youtube.com/c/BasedosDados/featured"},
{name: "Blog", href: "/blog"},
{name: [t('faq')], href: "/faq"}
],
Blog: "/blog",
[t('institutional')]: [
{name: [t('about_us')], href: "/about-us"},
{name: [t('transparency')], href: "/transparency"},
{name: [t('faq')], href: "/faq"},
],
[t('contact')]: "/contact",
Button: []
Expand Down
3 changes: 2 additions & 1 deletion next/pages/api/blog/categories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const categories = {
analise: "Análises",
tutorial: "Tutoriais"
tutorial: "Tutoriais",
institucional: "Institucional"
}
8 changes: 4 additions & 4 deletions next/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,19 @@
"dataConsulting": "Data consulting",
"caseStudies": "Case studies"
},
"tutorials": {
"title": "TUTORIALS",
"resources": {
"title": "RESOURCES",
"documentation": "Documentation",
"blog": "Blog",
"youtubeVideos": "Videos"
"youtubeVideos": "Videos",
"faq": "FAQ"
},
"institutional": {
"title": "INSTITUTIONAL",
"aboutUs": "About us",
"transparency": "Transparency",
"newsletter": "Newsletter",
"careers": "Careers",
"faq": "FAQ",
"termsAndPrivacy": "Terms and Privacy",
"contact": "Contact",
"supportProject": "Support the project"
Expand Down
1 change: 1 addition & 0 deletions next/public/locales/en/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"services": "Services",
"prices": "Prices",
"tutorials": "Tutorials",
"resources": "Resources",
"documentation": "Documentation",
"youtube_videos": "Youtube videos",
"blog": "Blog",
Expand Down
8 changes: 4 additions & 4 deletions next/public/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,19 @@
"dataConsulting": "Consultoría de datos",
"caseStudies": "Estudios de caso"
},
"tutorials": {
"title": "TUTORIALES",
"resources": {
"title": "RECURSOS",
"documentation": "Documentación",
"blog": "Blog",
"youtubeVideos": "Vídeos"
"youtubeVideos": "Vídeos",
"faq": "Preguntas frecuentes"
},
"institutional": {
"title": "INSTITUCIONAL",
"aboutUs": "Quiénes somos",
"transparency": "Transparencia",
"newsletter": "Boletín",
"careers": "Carreras",
"faq": "Preguntas frecuentes",
"termsAndPrivacy": "Términos y Privacidad",
"contact": "Contacto",
"supportProject": "Apoya el proyecto"
Expand Down
1 change: 1 addition & 0 deletions next/public/locales/es/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"services": "Servicios",
"prices": "Precios",
"tutorials": "Tutoriales",
"resources": "Recursos",
"documentation": "Documentación",
"youtube_videos": "Videos de Youtube",
"blog": "Blog",
Expand Down
8 changes: 4 additions & 4 deletions next/public/locales/pt/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,19 @@
"dataConsulting": "Consultoria de dados",
"caseStudies": "Estudos de caso"
},
"tutorials": {
"title": "TUTORIAIS",
"resources": {
"title": "RECURSOS",
"documentation": "Documentação",
"blog": "Blog",
"youtubeVideos": "Vídeos"
"youtubeVideos": "Vídeos",
"faq": "Perguntas frequentes"
},
"institutional": {
"title": "INSTITUCIONAL",
"aboutUs": "Quem somos",
"transparency": "Transparência",
"newsletter": "Newsletter",
"careers": "Carreiras",
"faq": "Perguntas frequentes",
"termsAndPrivacy": "Termos e Privacidade",
"contact": "Contato",
"supportProject": "Apoie o projeto"
Expand Down
1 change: 1 addition & 0 deletions next/public/locales/pt/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"services": "Serviços",
"prices": "Preços",
"tutorials": "Tutoriais",
"resources": "Recursos",
"documentation": "Documentação",
"youtube_videos": "Videos no Youtube",
"blog": "Blog",
Expand Down

0 comments on commit a0ecd62

Please sign in to comment.