mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-04 16:00:38 +08:00
feat: nodata i18n
This commit is contained in:
parent
512b6e4b14
commit
1593ef0640
@ -4,6 +4,7 @@ import React from 'react'
|
|||||||
import { ClockPlay } from '@/app/components/base/icons/src/vender/line/time'
|
import { ClockPlay } from '@/app/components/base/icons/src/vender/line/time'
|
||||||
import Button from '@/app/components/base/button'
|
import Button from '@/app/components/base/button'
|
||||||
import { RiPlayLine } from '@remixicon/react'
|
import { RiPlayLine } from '@remixicon/react'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
onSingleRun: () => void
|
onSingleRun: () => void
|
||||||
@ -12,17 +13,18 @@ type Props = {
|
|||||||
const NoData: FC<Props> = ({
|
const NoData: FC<Props> = ({
|
||||||
onSingleRun,
|
onSingleRun,
|
||||||
}) => {
|
}) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
return (
|
return (
|
||||||
<div className='flex h-0 grow flex-col items-center justify-center'>
|
<div className='flex h-0 grow flex-col items-center justify-center'>
|
||||||
<ClockPlay className='h-8 w-8 text-text-quaternary' />
|
<ClockPlay className='h-8 w-8 text-text-quaternary' />
|
||||||
<div className='system-xs-regular my-2 text-text-tertiary'>The results of the last run will be displayed here</div>
|
<div className='system-xs-regular my-2 text-text-tertiary'>{t('workflow.debug.noData.description')}</div>
|
||||||
<Button
|
<Button
|
||||||
className='flex'
|
className='flex'
|
||||||
size='small'
|
size='small'
|
||||||
onClick={onSingleRun}
|
onClick={onSingleRun}
|
||||||
>
|
>
|
||||||
<RiPlayLine className='mr-1 h-3.5 w-3.5' />
|
<RiPlayLine className='mr-1 h-3.5 w-3.5' />
|
||||||
<div>Run this node</div>
|
<div>{t('workflow.debug.noData.runThisNode')}</div>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -910,6 +910,10 @@ const translation = {
|
|||||||
debug: {
|
debug: {
|
||||||
settingsTab: 'Settings',
|
settingsTab: 'Settings',
|
||||||
lastRunTab: 'Last Run',
|
lastRunTab: 'Last Run',
|
||||||
|
noData: {
|
||||||
|
description: 'The results of the last run will be displayed here',
|
||||||
|
runThisNode: 'Run this node',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -911,6 +911,10 @@ const translation = {
|
|||||||
debug: {
|
debug: {
|
||||||
settingsTab: '设置',
|
settingsTab: '设置',
|
||||||
lastRunTab: '上次运行',
|
lastRunTab: '上次运行',
|
||||||
|
noData: {
|
||||||
|
description: '上次运行的结果将显示在这里',
|
||||||
|
runThisNode: '运行此节点',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user