From 509862c46c5dfd65c220ab8ad45a30a287bc3dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=98=E3=82=B2=E3=83=87=E3=82=A3=E3=82=B9=E3=83=BB?= =?UTF-8?q?=E3=82=B8=E3=83=A7=E3=82=B7=E3=83=A5=E3=82=A2?= Date: Wed, 29 May 2024 12:13:50 +0200 Subject: [PATCH] testing to add the default english metadata to the base layout --- app/layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index fb8d437..f94c30c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,6 +4,7 @@ import React from "react"; import {Inter as FontSans} from "next/font/google" import {cn} from "@/lib/utils"; import {headers} from "next/headers"; +import {getDictionary} from "@/i18n/dictionaries"; export const runtime = 'edge'; @@ -12,8 +13,11 @@ type RootLayoutProps = { } export async function generateMetadata(): Promise { + const dict = await getDictionary("en"); return { metadataBase: new URL(`https://${headers().get("host")}`), + title: dict.common.title, + description: dict.common.description, }; }