Skip to content

Commit d8b4230

Browse files
committed
chore: update next demo
1 parent dedfaae commit d8b4230

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

cmp/demo/next16/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
description: "Generated by create next app",
1919
};
2020

21-
export default async function RootLayout({
21+
export default function RootLayout({
2222
children,
2323
}: Readonly<{
2424
children: React.ReactNode;

cmp/demo/next16/app/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export default function Home() {
1515
</>
1616
);
1717

18+
const something = { cool: "cool", translatedCool: <>translated cool</> };
19+
1820
return (
1921
<main className="flex w-full min-h-screen flex-col items-center bg-white dark:bg-black sm:items-start">
2022
<header className="flex justify-between p-10 w-full">
@@ -57,6 +59,10 @@ export default function Home() {
5759
{translatableText}
5860
{"</>"}
5961
</div>
62+
<div>
63+
What happens if I use a property {something.cool} and{" "}
64+
{something.translatedCool}
65+
</div>
6066
<div>
6167
Text external to the component is not translated: {externalText}
6268
</div>

0 commit comments

Comments
 (0)