Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
c2d47cd2
Unverified
Commit
c2d47cd2
authored
Feb 05, 2024
by
Benjamin
Committed by
GitHub
Feb 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:add translation for dataset knowledge and update document title (#2396)
parent
e1a9e0ac
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
6 deletions
+11
-6
Datasets.tsx
web/app/(commonLayout)/datasets/Datasets.tsx
+4
-0
app.en.ts
web/i18n/lang/app.en.ts
+1
-1
app.pt.ts
web/i18n/lang/app.pt.ts
+1
-1
app.zh.ts
web/i18n/lang/app.zh.ts
+1
-1
dataset.pt.ts
web/i18n/lang/dataset.pt.ts
+1
-0
explore.en.ts
web/i18n/lang/explore.en.ts
+1
-1
explore.pt.ts
web/i18n/lang/explore.pt.ts
+1
-1
explore.zh.ts
web/i18n/lang/explore.zh.ts
+1
-1
No files found.
web/app/(commonLayout)/datasets/Datasets.tsx
View file @
c2d47cd2
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
import
{
useEffect
,
useRef
}
from
'react'
import
{
useEffect
,
useRef
}
from
'react'
import
useSWRInfinite
from
'swr/infinite'
import
useSWRInfinite
from
'swr/infinite'
import
{
debounce
}
from
'lodash-es'
import
{
debounce
}
from
'lodash-es'
import
{
useTranslation
}
from
'react-i18next'
import
NewDatasetCard
from
'./NewDatasetCard'
import
NewDatasetCard
from
'./NewDatasetCard'
import
DatasetCard
from
'./DatasetCard'
import
DatasetCard
from
'./DatasetCard'
import
type
{
DataSetListResponse
}
from
'@/models/datasets'
import
type
{
DataSetListResponse
}
from
'@/models/datasets'
...
@@ -27,8 +28,11 @@ const Datasets = ({
...
@@ -27,8 +28,11 @@ const Datasets = ({
const
loadingStateRef
=
useRef
(
false
)
const
loadingStateRef
=
useRef
(
false
)
const
anchorRef
=
useRef
<
HTMLAnchorElement
>
(
null
)
const
anchorRef
=
useRef
<
HTMLAnchorElement
>
(
null
)
const
{
t
}
=
useTranslation
()
useEffect
(()
=>
{
useEffect
(()
=>
{
loadingStateRef
.
current
=
isLoading
loadingStateRef
.
current
=
isLoading
document
.
title
=
`
${
t
(
'dataset.knowledge'
)}
- Dify`
},
[
isLoading
])
},
[
isLoading
])
useEffect
(()
=>
{
useEffect
(()
=>
{
...
...
web/i18n/lang/app.en.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
title
:
'
Apps
'
,
title
:
'
Studio
'
,
createApp
:
'Create new App'
,
createApp
:
'Create new App'
,
types
:
{
types
:
{
all
:
'All'
,
all
:
'All'
,
...
...
web/i18n/lang/app.pt.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
title
:
'
Aplicativos
'
,
title
:
'
Studio
'
,
createApp
:
'Criar novo aplicativo'
,
createApp
:
'Criar novo aplicativo'
,
modes
:
{
modes
:
{
completion
:
'Gerador de Texto'
,
completion
:
'Gerador de Texto'
,
...
...
web/i18n/lang/app.zh.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
title
:
'
应用
'
,
title
:
'
工作室
'
,
createApp
:
'创建应用'
,
createApp
:
'创建应用'
,
types
:
{
types
:
{
all
:
'全部'
,
all
:
'全部'
,
...
...
web/i18n/lang/dataset.pt.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
knowledge
:
'Wiedza'
,
documentCount
:
' documentos'
,
documentCount
:
' documentos'
,
wordCount
:
'k palavras'
,
wordCount
:
'k palavras'
,
appCount
:
' aplicativos vinculados'
,
appCount
:
' aplicativos vinculados'
,
...
...
web/i18n/lang/explore.en.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
title
:
'
My Apps
'
,
title
:
'
Explore
'
,
sidebar
:
{
sidebar
:
{
discovery
:
'Discovery'
,
discovery
:
'Discovery'
,
chat
:
'Chat'
,
chat
:
'Chat'
,
...
...
web/i18n/lang/explore.pt.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
title
:
'
Minhas Aplicações
'
,
title
:
'
Badać
'
,
sidebar
:
{
sidebar
:
{
discovery
:
'Descoberta'
,
discovery
:
'Descoberta'
,
chat
:
'Chat'
,
chat
:
'Chat'
,
...
...
web/i18n/lang/explore.zh.ts
View file @
c2d47cd2
const
translation
=
{
const
translation
=
{
title
:
'
我的应用
'
,
title
:
'
探索
'
,
sidebar
:
{
sidebar
:
{
discovery
:
'发现'
,
discovery
:
'发现'
,
chat
:
'智聊'
,
chat
:
'智聊'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment