mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
Co-authored-by: Piyush Gupta <piyushguptaa2z123@gmail.com> Co-authored-by: Piyush Gupta <56182734+gupta-piyush19@users.noreply.github.com> Co-authored-by: Victor Hugo dos Santos <115753265+victorvhs017@users.noreply.github.com> Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com> Co-authored-by: Matti Nannt <matti@formbricks.com> Co-authored-by: Matti Nannt <mail@matthiasnannt.com> Co-authored-by: Johannes <johannes@formbricks.com> Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { Metadata } from "next";
|
|
import React from "react";
|
|
import { SentryProvider } from "@/app/sentry/SentryProvider";
|
|
import {
|
|
DEFAULT_LOCALE,
|
|
IS_PRODUCTION,
|
|
SENTRY_DSN,
|
|
SENTRY_ENVIRONMENT,
|
|
SENTRY_RELEASE,
|
|
} from "@/lib/constants";
|
|
import { I18nProvider } from "@/lingodotdev/client";
|
|
import { getLocale } from "@/lingodotdev/language";
|
|
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();
|
|
|
|
return (
|
|
<html lang={locale} translate="no">
|
|
<body className="flex h-dvh flex-col transition-all ease-in-out">
|
|
<SentryProvider
|
|
sentryDsn={SENTRY_DSN}
|
|
sentryRelease={SENTRY_RELEASE}
|
|
sentryEnvironment={SENTRY_ENVIRONMENT}
|
|
isEnabled={IS_PRODUCTION}>
|
|
<I18nProvider language={locale} defaultLanguage={DEFAULT_LOCALE}>
|
|
{children}
|
|
</I18nProvider>
|
|
</SentryProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
};
|
|
|
|
export default RootLayout;
|