chore: i18n

feat/enchance-prompt-and-code-fe
Joel 8 months ago
parent d82abbef23
commit 424a563055

@ -43,6 +43,7 @@ import InstructionEditor from './instruction-editor'
import type { Node, NodeOutPutVar } from '@/app/components/workflow/types'
import type { GeneratorType } from './types'
import { ArrowDownRoundFill } from '@/app/components/base/icons/src/vender/solid/general'
import Link from 'next/link'
const i18nPrefix = 'appDebug.generate'
export type IGetAutomaticResProps = {
@ -190,8 +191,8 @@ const GetAutomaticRes: FC<IGetAutomaticResProps> = ({
<div className='flex h-full w-0 grow flex-col items-center justify-center space-y-3 px-8'>
<Generator className='h-14 w-14 text-text-tertiary' />
<div className='text-center text-[13px] font-normal leading-5 text-text-tertiary'>
<div>{t('appDebug.generate.noDataLine1')}</div>
<div>{t('appDebug.generate.noDataLine2')}</div>
<div>{t('appDebug.generate.newNoDataLine1')}</div>
<Link className='text-text-accent' href='//todo' target='_blank'>{t('appDebug.generate.newNoDataLine2')}</Link>
</div>
</div>
)

@ -258,8 +258,8 @@ const translation = {
dismiss: 'Dismiss',
generate: 'Generate',
resTitle: 'Generated Prompt',
noDataLine1: 'Describe your use case on the left,',
noDataLine2: 'the orchestration preview will show here.',
newNoDataLine1: 'Write a instruction in the left column, and click Generate to see response. ',
newNoDataLine2: 'Learn about prompt design',
apply: 'Apply',
loading: 'Orchestrating the application for you...',
overwriteTitle: 'Override existing configuration?',

@ -236,6 +236,8 @@ const translation = {
apply: '应用',
applyChanges: '应用更改',
resTitle: '生成的代码',
newNoDataLine1: '在左侧描述您的用例,点击生成查看响应。',
newNoDataLine2: '了解提示词设计',
overwriteConfirmTitle: '是否覆盖现有代码?',
overwriteConfirmMessage: '此操作将覆盖现有代码。您确定要继续吗?',
},

Loading…
Cancel
Save