rm caching of i18n

This commit is contained in:
Max Peintner
2024-11-25 09:19:58 +01:00
parent 7796f590fd
commit e964c7c062

View File

@@ -1,13 +1,8 @@
"use cache";
import { NextIntlClientProvider } from "next-intl";
import { getLocale, getMessages } from "next-intl/server";
import { unstable_cacheLife as cacheLife } from "next/cache";
import { ReactNode } from "react";
export async function LanguageProvider({ children }: { children: ReactNode }) {
cacheLife("hours");
const locale = await getLocale();
const messages = await getMessages();
return (