Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

459 B
Raw Blame
import { getLocaleOnServer } from '@/i18n/server'
import { headers } from '@/next/headers'
import { I18nClientProvider } from './i18n'

export async function I18nServerProvider({ children }: { children: React.ReactNode }) {
  const nonce = (await headers()).get('x-nonce') ?? undefined
  const locale = await getLocaleOnServer()

  return (
    <I18nClientProvider locale={locale} resource={{}} nonce={nonce}>
      {children}
    </I18nClientProvider>
  )
}