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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: update document link based on client locale (#18493)
GuanMube964c78ecf2
diff --git a/web/app/components/datasets/documents/index.tsx b/web/app/components/datasets/documents/index.tsxindex 20e14a994b8..854c984559f 100644--- a/web/app/components/datasets/documents/index.tsx+++ b/web/app/components/datasets/documents/index.tsx@@ -29,6 +29,8 @@ import { useChildSegmentListKey, useSegmentListKey } from '@/service/knowledge/uimport useEditDocumentMetadata from '../metadata/hooks/use-edit-dataset-metadata'import DatasetMetadataDrawer from '../metadata/metadata-dataset/dataset-metadata-drawer'import StatusWithAction from '../common/document-status-with-action/status-with-action'+import { LanguagesSupported } from '@/i18n/language'+import { getLocaleOnClient } from '@/i18n'const FolderPlusIcon = ({ className }: React.SVGProps<SVGElement>) => {return <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" className={className ?? ''}>@@ -98,7 +100,7 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {const isDataSourceWeb = dataset?.data_source_type === DataSourceType.WEBconst isDataSourceFile = dataset?.data_source_type === DataSourceType.FILEconst embeddingAvailable = !!dataset?.embedding_available-+ const locale = getLocaleOnClient()const debouncedSearchValue = useDebounce(searchValue, { wait: 500 })const { data: documentsRes, isFetching: isListLoading } = useDocumentList({@@ -260,7 +262,12 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {<aclassName='flex items-center text-text-accent'target='_blank'- href='https://docs.dify.ai/guides/knowledge-base/integrate-knowledge-within-application'>+ href={+ locale === LanguagesSupported[1]+ ? 'https://docs.dify.ai/v/zh-hans/guides/knowledge-base/integrate-knowledge-within-application'+ : 'https://docs.dify.ai/guides/knowledge-base/integrate-knowledge-within-application'+ }+ ><span>{t('datasetDocuments.list.learnMore')}</span><RiExternalLinkLine className='h-3 w-3' /></a>