diff --git a/web/app/(commonLayout)/datasets/Datasets.tsx b/web/app/(commonLayout)/datasets/Datasets.tsx index 0bec39fe1..adaf37897 100644 --- a/web/app/(commonLayout)/datasets/Datasets.tsx +++ b/web/app/(commonLayout)/datasets/Datasets.tsx @@ -3,6 +3,7 @@ import { useEffect, useRef } from 'react' import useSWRInfinite from 'swr/infinite' import { debounce } from 'lodash-es' +import { useTranslation } from 'react-i18next' import NewDatasetCard from './NewDatasetCard' import DatasetCard from './DatasetCard' import type { DataSetListResponse } from '@/models/datasets' @@ -27,8 +28,11 @@ const Datasets = ({ const loadingStateRef = useRef(false) const anchorRef = useRef(null) + const { t } = useTranslation() + useEffect(() => { loadingStateRef.current = isLoading + document.title = `${t('dataset.knowledge')} - Dify` }, [isLoading]) useEffect(() => { diff --git a/web/i18n/lang/app.en.ts b/web/i18n/lang/app.en.ts index b4334b04b..942841ca2 100644 --- a/web/i18n/lang/app.en.ts +++ b/web/i18n/lang/app.en.ts @@ -1,5 +1,5 @@ const translation = { - title: 'Apps', + title: 'Studio', createApp: 'Create new App', types: { all: 'All', diff --git a/web/i18n/lang/app.pt.ts b/web/i18n/lang/app.pt.ts index 26b3976b2..2a13511c7 100644 --- a/web/i18n/lang/app.pt.ts +++ b/web/i18n/lang/app.pt.ts @@ -1,5 +1,5 @@ const translation = { - title: 'Aplicativos', + title: 'Studio', createApp: 'Criar novo aplicativo', modes: { completion: 'Gerador de Texto', diff --git a/web/i18n/lang/app.zh.ts b/web/i18n/lang/app.zh.ts index 1d52deb66..ce1b6b1cf 100644 --- a/web/i18n/lang/app.zh.ts +++ b/web/i18n/lang/app.zh.ts @@ -1,5 +1,5 @@ const translation = { - title: '应用', + title: '工作室', createApp: '创建应用', types: { all: '全部', diff --git a/web/i18n/lang/dataset.pt.ts b/web/i18n/lang/dataset.pt.ts index 3384b0ef2..3ca5fca15 100644 --- a/web/i18n/lang/dataset.pt.ts +++ b/web/i18n/lang/dataset.pt.ts @@ -1,4 +1,5 @@ const translation = { + knowledge: 'Wiedza', documentCount: ' documentos', wordCount: 'k palavras', appCount: ' aplicativos vinculados', diff --git a/web/i18n/lang/explore.en.ts b/web/i18n/lang/explore.en.ts index 5af34cb37..330ae84b3 100644 --- a/web/i18n/lang/explore.en.ts +++ b/web/i18n/lang/explore.en.ts @@ -1,5 +1,5 @@ const translation = { - title: 'My Apps', + title: 'Explore', sidebar: { discovery: 'Discovery', chat: 'Chat', diff --git a/web/i18n/lang/explore.pt.ts b/web/i18n/lang/explore.pt.ts index 8ccf09b4f..c188a8eb9 100644 --- a/web/i18n/lang/explore.pt.ts +++ b/web/i18n/lang/explore.pt.ts @@ -1,5 +1,5 @@ const translation = { - title: 'Minhas Aplicações', + title: 'Badać', sidebar: { discovery: 'Descoberta', chat: 'Chat', diff --git a/web/i18n/lang/explore.zh.ts b/web/i18n/lang/explore.zh.ts index dbc14f6e0..84a78d6ac 100644 --- a/web/i18n/lang/explore.zh.ts +++ b/web/i18n/lang/explore.zh.ts @@ -1,5 +1,5 @@ const translation = { - title: '我的应用', + title: '探索', sidebar: { discovery: '发现', chat: '智聊',