mirror of
https://github.com/langgenius/dify.git
synced 2026-03-29 16:40:10 +08:00
169 lines
4.2 KiB
TypeScript
169 lines
4.2 KiB
TypeScript
const translation = {
|
|
nodes: {
|
|
common: {
|
|
outputVars: '输出变量',
|
|
insertVarTip: '插入变量',
|
|
memory: {
|
|
memory: '记忆',
|
|
memoryTip: '聊天记忆设置',
|
|
windowSize: '记忆窗口',
|
|
conversationRoleName: '对话角色名',
|
|
user: '用户前缀',
|
|
assistant: '助手前缀',
|
|
},
|
|
},
|
|
start: {
|
|
required: '必填',
|
|
inputField: '输入字段',
|
|
builtInVar: '内置变量',
|
|
outputVars: {
|
|
query: '用户输入',
|
|
memories: {
|
|
des: '会话历史',
|
|
type: '消息类型',
|
|
content: '消息内容',
|
|
},
|
|
files: '文件列表',
|
|
},
|
|
noVarTip: '设置的输入可在工作流程中使用',
|
|
},
|
|
end: {
|
|
outputs: '输出',
|
|
output: {
|
|
type: '输出类型',
|
|
variable: '输出变量',
|
|
},
|
|
type: {
|
|
'none': '无',
|
|
'plain-text': '纯文本',
|
|
'structured': '结构化',
|
|
},
|
|
},
|
|
directAnswer: {
|
|
answer: '回复',
|
|
inputVars: '输入变量',
|
|
},
|
|
llm: {
|
|
model: '模型',
|
|
variables: '变量',
|
|
context: '上下文',
|
|
contextTooltip: '您可以导入知识库作为上下文',
|
|
prompt: '提示词',
|
|
vision: '视觉',
|
|
resolution: {
|
|
name: '分辨率',
|
|
high: '高',
|
|
low: '低',
|
|
},
|
|
outputVars: {
|
|
output: '生成内容',
|
|
usage: '模型用量信息',
|
|
},
|
|
},
|
|
knowledgeRetrieval: {
|
|
queryVariable: '查询变量',
|
|
knowledge: '知识库',
|
|
outputVars: {
|
|
output: '召回的分段',
|
|
content: '分段内容',
|
|
title: '分段标题',
|
|
icon: '分段图标',
|
|
url: '分段链接',
|
|
metadata: '其他元数据',
|
|
},
|
|
},
|
|
http: {
|
|
inputVars: '输入变量',
|
|
api: 'API',
|
|
key: '键',
|
|
value: '值',
|
|
bulkEdit: '批量编辑',
|
|
keyValueEdit: '键值编辑',
|
|
headers: '响应头',
|
|
params: '参数',
|
|
body: '响应内容',
|
|
outputVars: {
|
|
body: '响应内容',
|
|
statusCode: '响应状态码',
|
|
headers: '响应头列表 JSON',
|
|
},
|
|
authorization: {
|
|
'authorization': '鉴权',
|
|
'authorizationType': '鉴权类型',
|
|
'no-auth': '无',
|
|
'api-key': 'API-Key',
|
|
'auth-type': 'API 鉴权类型',
|
|
'basic': '基础',
|
|
'bearer': 'Bearer',
|
|
'custom': '自定义',
|
|
'api-key-title': 'API Key',
|
|
'header': 'Header',
|
|
},
|
|
},
|
|
code: {
|
|
inputVars: '输入变量',
|
|
outputVars: '输出变量',
|
|
},
|
|
templateTransform: {
|
|
inputVars: '输入变量',
|
|
code: '代码',
|
|
codeSupportTip: '只支持 Jinja2',
|
|
outputVars: {
|
|
output: '转换后内容',
|
|
},
|
|
},
|
|
ifElse: {
|
|
conditions: '条件',
|
|
if: 'If',
|
|
else: 'Else',
|
|
elseDescription: '用于定义当 if 条件不满足时应执行的逻辑。',
|
|
and: 'and',
|
|
or: 'or',
|
|
comparisonOperator: {
|
|
'contains': '包含',
|
|
'not contains': '不包含',
|
|
'start with': '开始是',
|
|
'end with': '结束是',
|
|
'is': '是',
|
|
'is not': '不是',
|
|
'empty': '为空',
|
|
'not empty': '不为空',
|
|
'null': '空',
|
|
'not null': '不为空',
|
|
},
|
|
enterValue: '输入值',
|
|
addCondition: '添加条件',
|
|
},
|
|
variableAssigner: {
|
|
title: '变量赋值',
|
|
outputType: '输出类型',
|
|
outputVarType: '输出变量类型',
|
|
varNotSet: '未设置变量',
|
|
noVarTip: '添加需要赋值的变量',
|
|
type: {
|
|
string: 'String',
|
|
number: 'Number',
|
|
object: 'Object',
|
|
array: 'Array',
|
|
},
|
|
},
|
|
tool: {
|
|
toAuthorize: '授权',
|
|
inputVars: '输入变量',
|
|
},
|
|
questionClassifiers: {
|
|
model: '模型',
|
|
inputVars: '输入变量',
|
|
class: '分类',
|
|
classNamePlaceholder: '输入你的分类名称',
|
|
advancedSetting: '高级设置',
|
|
topicPlaceholder: '在这里输入你的主题内容',
|
|
addClass: '添加分类',
|
|
instruction: '指令',
|
|
instructionPlaceholder: '在这里输入你的指令',
|
|
},
|
|
},
|
|
}
|
|
|
|
export default translation
|