From a0ecd62cf5a2191927f6e47b2ee1d6fdaab70536 Mon Sep 17 00:00:00 2001 From: aldemirlucas Date: Tue, 10 Dec 2024 16:22:26 -0300 Subject: [PATCH] chore: ajust translations menu and footer, add new categorie blog --- next/components/molecules/Footer.js | 15 +++++++++------ next/components/molecules/Menu.js | 18 +++++++++--------- next/pages/api/blog/categories.js | 3 ++- next/public/locales/en/common.json | 8 ++++---- next/public/locales/en/menu.json | 1 + next/public/locales/es/common.json | 8 ++++---- next/public/locales/es/menu.json | 1 + next/public/locales/pt/common.json | 8 ++++---- next/public/locales/pt/menu.json | 1 + 9 files changed, 35 insertions(+), 28 deletions(-) diff --git a/next/components/molecules/Footer.js b/next/components/molecules/Footer.js index 69d59765..fc07a530 100644 --- a/next/components/molecules/Footer.js +++ b/next/components/molecules/Footer.js @@ -237,17 +237,23 @@ export default function Footer({ template, ocult = false }) { )} - + - {t('footer.tutorials.documentation')} + {t('footer.resources.documentation')} - {t('footer.tutorials.youtubeVideos')} + {t('footer.resources.youtubeVideos')} + + + {t('footer.resources.blog')} + + + {t('footer.resources.faq')} @@ -268,9 +274,6 @@ export default function Footer({ template, ocult = false }) { )} - - {t('footer.institutional.faq')} - {t('footer.institutional.termsAndPrivacy')} diff --git a/next/components/molecules/Menu.js b/next/components/molecules/Menu.js index 4d8d70c6..cd3bc4b0 100644 --- a/next/components/molecules/Menu.js +++ b/next/components/molecules/Menu.js @@ -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: [] @@ -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: [] @@ -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: [] diff --git a/next/pages/api/blog/categories.js b/next/pages/api/blog/categories.js index 7041919c..3a3a2078 100644 --- a/next/pages/api/blog/categories.js +++ b/next/pages/api/blog/categories.js @@ -1,4 +1,5 @@ export const categories = { analise: "Análises", - tutorial: "Tutoriais" + tutorial: "Tutoriais", + institucional: "Institucional" } diff --git a/next/public/locales/en/common.json b/next/public/locales/en/common.json index 34016197..f702889f 100644 --- a/next/public/locales/en/common.json +++ b/next/public/locales/en/common.json @@ -93,11 +93,12 @@ "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", @@ -105,7 +106,6 @@ "transparency": "Transparency", "newsletter": "Newsletter", "careers": "Careers", - "faq": "FAQ", "termsAndPrivacy": "Terms and Privacy", "contact": "Contact", "supportProject": "Support the project" diff --git a/next/public/locales/en/menu.json b/next/public/locales/en/menu.json index 7a1f08db..421f29c2 100644 --- a/next/public/locales/en/menu.json +++ b/next/public/locales/en/menu.json @@ -16,6 +16,7 @@ "services": "Services", "prices": "Prices", "tutorials": "Tutorials", + "resources": "Resources", "documentation": "Documentation", "youtube_videos": "Youtube videos", "blog": "Blog", diff --git a/next/public/locales/es/common.json b/next/public/locales/es/common.json index 6e11f2df..12986a32 100644 --- a/next/public/locales/es/common.json +++ b/next/public/locales/es/common.json @@ -93,11 +93,12 @@ "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", @@ -105,7 +106,6 @@ "transparency": "Transparencia", "newsletter": "Boletín", "careers": "Carreras", - "faq": "Preguntas frecuentes", "termsAndPrivacy": "Términos y Privacidad", "contact": "Contacto", "supportProject": "Apoya el proyecto" diff --git a/next/public/locales/es/menu.json b/next/public/locales/es/menu.json index a1ab4b80..057d1156 100644 --- a/next/public/locales/es/menu.json +++ b/next/public/locales/es/menu.json @@ -16,6 +16,7 @@ "services": "Servicios", "prices": "Precios", "tutorials": "Tutoriales", + "resources": "Recursos", "documentation": "Documentación", "youtube_videos": "Videos de Youtube", "blog": "Blog", diff --git a/next/public/locales/pt/common.json b/next/public/locales/pt/common.json index 9f37f44f..13c9af61 100644 --- a/next/public/locales/pt/common.json +++ b/next/public/locales/pt/common.json @@ -93,11 +93,12 @@ "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", @@ -105,7 +106,6 @@ "transparency": "Transparência", "newsletter": "Newsletter", "careers": "Carreiras", - "faq": "Perguntas frequentes", "termsAndPrivacy": "Termos e Privacidade", "contact": "Contato", "supportProject": "Apoie o projeto" diff --git a/next/public/locales/pt/menu.json b/next/public/locales/pt/menu.json index 0fd52b2e..cd9caa43 100644 --- a/next/public/locales/pt/menu.json +++ b/next/public/locales/pt/menu.json @@ -16,6 +16,7 @@ "services": "Serviços", "prices": "Preços", "tutorials": "Tutoriais", + "resources": "Recursos", "documentation": "Documentação", "youtube_videos": "Videos no Youtube", "blog": "Blog",