feat: init rsc support for translation (#30596)

This commit is contained in:
Stephen Zhou
2026-01-06 13:23:03 +08:00
committed by GitHub
parent 89463cc11d
commit b2124a7358
10 changed files with 202 additions and 214 deletions

View File

@ -1,11 +1,8 @@
/* eslint-disable dify-i18n/require-ns-option */
import * as React from 'react'
import { useTranslation } from '#i18n'
import Form from '@/app/components/datasets/settings/form'
import { getLocaleOnServer, getTranslation } from '@/i18n-config/server'
const Settings = async () => {
const locale = await getLocaleOnServer()
const { t } = await getTranslation(locale, 'dataset-settings')
const Settings = () => {
const { t } = useTranslation('datasetSettings')
return (
<div className="h-full overflow-y-auto">