languages checked
This commit is contained in:
parent
a9f655930e
commit
3d0b7c3b18
@ -17,7 +17,7 @@ const BlogSingle = () => {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { slug } = router.query;
|
const { slug } = router.query;
|
||||||
|
|
||||||
const { t } = useTranslation('blog');
|
const { t } = useTranslation(['blog', 'innerBanner']);
|
||||||
|
|
||||||
if (!slug) return null; // Avoid hydration mismatch on first load
|
if (!slug) return null; // Avoid hydration mismatch on first load
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ const BlogSingle = () => {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Navbar2 />
|
<Navbar2 />
|
||||||
<PageTitle pageTitle={blogContent.title} backgroundImage={bg} pagesub={blogContent.sub} />
|
<PageTitle pageTitle={blogContent.title} backgroundImage={bg} pagesub={t('blog-details.pageSub', { ns: 'innerBanner' })} />
|
||||||
|
|
||||||
<section className="wpo-blog-single-section section-padding">
|
<section className="wpo-blog-single-section section-padding">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
@ -96,7 +96,7 @@ export async function getStaticPaths() {
|
|||||||
export async function getStaticProps({ locale }) {
|
export async function getStaticProps({ locale }) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
...(await serverSideTranslations(locale, ['common', 'menu', 'blog', 'footer'])),
|
...(await serverSideTranslations(locale, ['common', 'menu', 'blog', 'footer', 'innerBanner'])),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,8 +25,12 @@
|
|||||||
"pageTitle": "Blog",
|
"pageTitle": "Blog",
|
||||||
"pageSub": "Blog"
|
"pageSub": "Blog"
|
||||||
},
|
},
|
||||||
|
"blog-details": {
|
||||||
|
"pageTitle": "Detalle del Blog",
|
||||||
|
"pageSub": "Detalle del Blog"
|
||||||
|
},
|
||||||
"contact": {
|
"contact": {
|
||||||
"pageTitle": "Contáctanos",
|
"pageTitle": "Contáctanos",
|
||||||
"pageSub": "Contacto"
|
"pageSub": "Contacto"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user