diff --git a/pages/blog/[slug].js b/pages/blog/[slug].js index b76a1f0..7ac81ac 100644 --- a/pages/blog/[slug].js +++ b/pages/blog/[slug].js @@ -17,7 +17,7 @@ const BlogSingle = () => { const router = useRouter(); const { slug } = router.query; - const { t } = useTranslation('blog'); + const { t } = useTranslation(['blog', 'innerBanner']); if (!slug) return null; // Avoid hydration mismatch on first load @@ -39,7 +39,7 @@ const BlogSingle = () => { return ( - +
@@ -96,7 +96,7 @@ export async function getStaticPaths() { export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'blog', 'footer'])), + ...(await serverSideTranslations(locale, ['common', 'menu', 'blog', 'footer', 'innerBanner'])), }, }; } diff --git a/public/locales/es/innerBanner.json b/public/locales/es/innerBanner.json index 6178ca7..a88a05c 100644 --- a/public/locales/es/innerBanner.json +++ b/public/locales/es/innerBanner.json @@ -25,8 +25,12 @@ "pageTitle": "Blog", "pageSub": "Blog" }, + "blog-details": { + "pageTitle": "Detalle del Blog", + "pageSub": "Detalle del Blog" + }, "contact": { "pageTitle": "Contáctanos", "pageSub": "Contacto" } -} +} \ No newline at end of file