From 2865e18209fb4e579fabe610b6d9e449a21b1e9b Mon Sep 17 00:00:00 2001 From: Aral Roca Gomez Date: Thu, 15 Aug 2024 19:52:06 +0200 Subject: [PATCH] examples: fix next-translate prod hydration error in layout (#52653) Co-authored-by: Lee Robinson --- examples/with-next-translate/app/layout.js | 42 ++++++++++++---------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/examples/with-next-translate/app/layout.js b/examples/with-next-translate/app/layout.js index 50048ed6e4f04..ec1cc5798c831 100644 --- a/examples/with-next-translate/app/layout.js +++ b/examples/with-next-translate/app/layout.js @@ -6,25 +6,31 @@ export const metadata = { }; export default function Layout(props) { - const { t } = useTranslation(); + const { t, lang } = useTranslation(); return ( -
- {props.children} - -
+ + + {props.children} + + + ); }