mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-09 03:09:33 -06:00
30 lines
900 B
TypeScript
30 lines
900 B
TypeScript
import { SpeedInsights } from "@vercel/speed-insights/next";
|
|
import { Metadata } from "next";
|
|
import { NextIntlClientProvider } from "next-intl";
|
|
import { getLocale, getMessages } from "next-intl/server";
|
|
import "../modules/ui/globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
template: "%s | Formbricks",
|
|
default: "Formbricks",
|
|
},
|
|
description: "Open-Source Survey Suite",
|
|
};
|
|
|
|
const RootLayout = async ({ children }: { children: React.ReactNode }) => {
|
|
const locale = await getLocale();
|
|
const messages = await getMessages();
|
|
|
|
return (
|
|
<html lang={locale} translate="no">
|
|
{process.env.VERCEL === "1" && <SpeedInsights sampleRate={0.1} />}
|
|
<body className="flex h-dvh flex-col transition-all ease-in-out">
|
|
<NextIntlClientProvider messages={messages}>{children}</NextIntlClientProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
};
|
|
|
|
export default RootLayout;
|