mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:12:19 +00:00
rm caching of i18n
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user