dify/web/i18n/zh-Hant/app-debug.ts
-LAN- 85cda47c70
feat: knowledge pipeline (#25360)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: jyong <718720800@qq.com>
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: quicksand <quicksandzn@gmail.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com>
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <xh001x@hotmail.com>
2025-09-18 12:49:10 +08:00

573 lines
22 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const translation = {
pageTitle: {
line1: '提示詞',
line2: '編排',
},
orchestrate: '編排',
promptMode: {
simple: '切換到專家模式以編輯完整的提示詞',
advanced: '專家模式',
switchBack: '返回簡易模式',
advancedWarning: {
title: '您已切換到專家模式,一旦修改提示詞,將無法返回簡易模式。',
description: '在專家模式下,您可以編輯完整的提示詞。',
learnMore: '瞭解更多',
ok: '確定',
},
operation: {
addMessage: '新增訊息',
},
contextMissing: '上下文內容塊缺失,提示詞的有效性可能不好。',
},
operation: {
applyConfig: '釋出',
resetConfig: '重置',
debugConfig: '除錯',
addFeature: '新增功能',
automatic: '產生',
stopResponding: '停止回應',
agree: '贊同',
disagree: '反對',
cancelAgree: '取消贊同',
cancelDisagree: '取消反對',
userAction: '使用者表示',
},
notSetAPIKey: {
title: 'LLM 提供者的金鑰未設定',
trailFinished: '試用已結束',
description: '在除錯之前需要設定 LLM 提供者的金鑰。',
settingBtn: '去設定',
},
trailUseGPT4Info: {
title: '當前不支援使用 gpt-4',
description: '使用 gpt-4請設定 API Key',
},
feature: {
groupChat: {
title: '聊天增強',
description: '為聊天型應用新增預對話設定,可以提升使用者體驗。',
},
groupExperience: {
title: '體驗增強',
},
conversationOpener: {
title: '對話開場白',
description: '在對話型應用中,讓 AI 主動說第一段話可以拉近與使用者間的距離。',
},
suggestedQuestionsAfterAnswer: {
title: '下一步問題建議',
description: '設定下一步問題建議可以讓使用者更好的對話。',
resDes: '回答結束後系統會給出 3 個建議',
tryToAsk: '試著問問',
},
moreLikeThis: {
title: '更多類似的',
description: '一次生成多條文字,可在此基礎上編輯並繼續生成',
generateNumTip: '每次生成數',
tip: '使用此功能將會額外消耗 tokens',
},
speechToText: {
title: '語音轉文字',
description: '啟用後,您可以使用語音輸入。',
resDes: '語音輸入已啟用',
},
textToSpeech: {
title: '文字轉語音',
description: '啟用後,文字可以轉換成語音。',
resDes: '文字轉音訊已啟用',
},
citation: {
title: '引用和歸屬',
description: '啟用後,顯示源文件和生成內容的歸屬部分。',
resDes: '引用和歸屬已啟用',
},
annotation: {
title: '標註回覆',
description: '啟用後,將標註使用者的回覆,以便在使用者重複提問時快速響應。',
resDes: '標註回覆已啟用',
scoreThreshold: {
title: '分數閾值',
description: '用於設定標註回覆的匹配相似度閾值。',
easyMatch: '容易匹配',
accurateMatch: '精準匹配',
},
matchVariable: {
title: '匹配變數',
choosePlaceholder: '請選擇變數',
},
cacheManagement: '標註管理',
cached: '已標註',
remove: '移除',
removeConfirm: '刪除這個標註?',
add: '新增標註',
edit: '編輯標註',
},
dataSet: {
title: '上下文',
noData: '您可以匯入知識庫作為上下文',
words: '詞',
textBlocks: '文字塊',
selectTitle: '選擇引用知識庫',
selected: '個知識庫被選中',
noDataSet: '未找到知識庫',
toCreate: '去建立',
notSupportSelectMulti: '目前只支援引用一個知識庫',
queryVariable: {
title: '查詢變數',
tip: '該變數將用作上下文檢索的查詢輸入,獲取與該變數的輸入相關的上下文資訊。',
choosePlaceholder: '請選擇變數',
noVar: '沒有變數',
noVarTip: '請建立變數',
unableToQueryDataSet: '無法查詢知識庫',
unableToQueryDataSetTip: '無法成功查詢知識庫,請在上下文部分選擇一個上下文查詢變數。',
ok: '好的',
contextVarNotEmpty: '上下文查詢變數不能為空',
deleteContextVarTitle: '刪除變數“{{varName}}”?',
deleteContextVarTip: '該變數已被設定為上下文查詢變數,刪除該變數將影響知識庫的正常使用。如果您仍需要刪除它,請在上下文部分中重新選擇它。',
},
},
tools: {
title: '工具',
tips: '工具提供了一個標準的 API 呼叫方式,將使用者輸入或變數作為 API 的請求引數,用於查詢外部資料作為上下文。',
toolsInUse: '{{count}} 工具使用中',
modal: {
title: '工具',
toolType: {
title: '工具型別',
placeholder: '請選擇工具型別',
},
name: {
title: '名稱',
placeholder: '請填寫名稱',
},
variableName: {
title: '變數名稱',
placeholder: '請填寫變數名稱',
},
},
},
conversationHistory: {
title: '對話歷史',
description: '設定對話角色的字首名稱',
tip: '對話歷史未啟用,請在上面的提示中新增<histories>。',
learnMore: '瞭解更多',
editModal: {
title: '編輯對話角色名稱',
userPrefix: '使用者字首',
assistantPrefix: '助手字首',
},
},
toolbox: {
title: '工具箱',
},
moderation: {
title: '內容審查',
description: '您可以呼叫審查 API 或者維護敏感詞庫來使模型更安全地輸出。',
allEnabled: '審查輸入/審查輸出 內容已啟用',
inputEnabled: '審查輸入內容已啟用',
outputEnabled: '審查輸出內容已啟用',
modal: {
title: '內容審查設定',
provider: {
title: '類別',
openai: 'OpenAI Moderation',
openaiTip: {
prefix: 'OpenAI Moderation 需要在',
suffix: '中配置 OpenAI API 金鑰。',
},
keywords: '關鍵詞',
},
keywords: {
tip: '每行一個,用換行符分隔。每行最多 100 個字元。',
placeholder: '每行一個,用換行符分隔',
line: '行',
},
content: {
input: '審查輸入內容',
output: '審查輸出內容',
preset: '預設回覆',
placeholder: '這裡預設回覆內容',
condition: '審查輸入內容和審查輸出內容至少啟用一項',
fromApi: '預設回覆透過 API 返回',
errorMessage: '預設回覆不能為空',
supportMarkdown: '支援 Markdown',
},
openaiNotConfig: {
before: 'OpenAI 內容審查需要在',
after: '中配置 OpenAI API 金鑰。',
},
},
contentEnableLabel: '內容審查已啟用',
},
fileUpload: {
title: '檔案上傳',
description: '聊天輸入框支援上傳檔案。類型包括圖片、文件以及其它類型',
supportedTypes: '支援的檔案類型',
numberLimit: '最大上傳數',
modalTitle: '檔案上傳設定',
},
imageUpload: {
title: '圖片上傳',
description: '支援上傳圖片',
supportedTypes: '支援的檔案類型',
numberLimit: '最大上傳數',
modalTitle: '圖片上傳設定',
},
bar: {
empty: '開啟功能增強 web app 使用者體驗',
enableText: '功能已開啟',
manage: '管理',
},
documentUpload: {
title: '文件',
description: '啟用文件後,模型可以接收文件並回答關於它們的問題。',
},
audioUpload: {
title: '音訊',
description: '啟用音訊後,模型可以處理音訊檔案進行轉錄和分析。',
},
},
resetConfig: {
title: '確認重置?',
message: '重置將丟失當前頁面所有修改,恢復至上次釋出時的配置',
},
errorMessage: {
nameOfKeyRequired: '變數 {{key}} 對應的名稱必填',
valueOfVarRequired: '{{key}}必填',
queryRequired: '主要文字必填',
waitForResponse: '請等待上條資訊響應完成',
waitForBatchResponse: '請等待批次任務完成',
notSelectModel: '請選擇模型',
waitForImgUpload: '請等待圖片上傳完成',
waitForFileUpload: '請等待檔案上傳完成',
},
chatSubTitle: '提示詞',
completionSubTitle: '字首提示詞',
promptTip:
'提示詞用於對 AI 的回覆做出一系列指令和約束。可插入表單變數,例如 {{input}}。這段提示詞不會被終端使用者所看到。',
formattingChangedTitle: '編排已改變',
formattingChangedText: '修改編排將重置除錯區域,確定嗎?',
variableTitle: '變數',
notSetVar: '變數能使使用者輸入表單引入提示詞或開場白,你可以試試在提示詞中輸入 {{input}}',
variableTip:
'變數將以表單形式讓使用者在對話前填寫,使用者填寫的表單內容將自動替換提示詞中的變數。',
autoAddVar: '提示詞中引用了未定義的變數,是否自動新增到使用者輸入表單中?',
variableTable: {
key: '變數 Key',
name: '欄位名稱',
optional: '可選',
type: '型別',
action: '操作',
typeString: '文字',
typeSelect: '下拉選項',
},
varKeyError: {
canNoBeEmpty: '{{key}} 是必要的',
tooLong: '{{key}} 長度太長。不能超過 30 個字元',
notValid: '{{key}} 非法。只能包含英文字元,數字和下劃線',
notStartWithNumber: '{{key}} 不能以數字開頭',
keyAlreadyExists: '{{key}} 已存在',
},
otherError: {
promptNoBeEmpty: '提示詞不能為空',
historyNoBeEmpty: '提示詞中必須設定對話歷史',
queryNoBeEmpty: '提示詞中必須設定查詢內容',
},
variableConfig: {
'addModalTitle': '新增變數',
'editModalTitle': '編輯變數',
'description': '設定變數 {{varName}}',
'fieldType': '欄位型別',
'string': '文字',
'text-input': '文字',
'paragraph': '段落',
'select': '下拉選項',
'number': '數字',
'notSet': '未設定,在 Prompt 中輸入 {{input}} 試試',
'stringTitle': '文字框設定',
'maxLength': '最大長度',
'options': '選項',
'addOption': '新增選項',
'apiBasedVar': '基於 API 的變數',
'varName': '變數名稱',
'inputPlaceholder': '請輸入',
'labelName': '顯示名稱',
'required': '必填',
'hide': '隱藏',
'errorMsg': {
varNameRequired: '變數名稱必填',
labelNameRequired: '顯示名稱必填',
varNameCanBeRepeat: '變數名稱不能重複',
atLeastOneOption: '至少需要一個選項',
optionRepeat: '選項不能重複',
},
'defaultValue': '預設值',
'noDefaultValue': '',
'selectDefaultValue': '',
'file': {
image: {
name: '',
},
audio: {
name: '',
},
document: {
name: '',
},
video: {
name: '',
},
custom: {
name: '',
description: '',
createPlaceholder: ' .doc',
},
supportFileTypes: '',
},
'both': '',
'uploadFileTypes': '',
'multi-files': '',
'content': '',
'localUpload': '',
'single-file': '',
'maxNumberOfUploads': '',
'checkbox': '',
'optional': '',
'jsonSchema': 'JSON Schema',
'json': 'JSON ',
'unit': '',
'placeholder': '',
'displayName': '',
'showAllSettings': '',
'uploadMethod': '',
'noDefaultSelected': '',
'tooltipsPlaceholder': '',
'startSelectedOption': '',
'unitPlaceholder': '',
'placeholderPlaceholder': '',
'startChecked': '',
'tooltips': '',
'defaultValuePlaceholder': '',
},
vision: {
name: '',
description: '使',
settings: '',
visionSettings: {
title: '',
resolution: '',
resolutionTooltip: `低解析度模式將使模型接收影象的低解析度版本,尺寸為 512 x 512並使用 65 Tokens 來表示影象。這樣可以使 API 更快地返回響應,並在不需要高細節的用例中消耗更少的輸入。
\n
高解析度模式將首先允許模型檢視低解析度影象,然後根據輸入影象的大小建立 512 畫素的詳細裁剪影象。每個詳細裁剪影象使用兩倍的預算總共為 129 Tokens。`,
high: '',
low: '',
uploadMethod: '',
both: '',
localUpload: '',
url: 'URL',
uploadLimit: '',
},
onlySupportVisionModelTip: '',
},
voice: {
name: '',
defaultDisplay: '',
description: '',
settings: '',
voiceSettings: {
title: '',
language: '',
resolutionTooltip: '',
voice: '',
autoPlay: '',
autoPlayEnabled: '',
autoPlayDisabled: '',
},
},
openingStatement: {
title: '',
add: '',
writeOpener: '',
placeholder: '使 {{variable}}',
openingQuestion: '',
openingQuestionPlaceholder: '使 {{variable}}',
noDataPlaceHolder:
' AI 使',
varTip: '使 {{variable}}',
tooShort: ' 20 ',
notIncludeKey: ' {{key}}',
},
modelConfig: {
model: '',
setTone: '',
title: '',
modeType: {
chat: '',
completion: '',
},
},
inputs: {
title: '',
noPrompt: '',
userInputField: '使',
noVar: '',
chatVarTip: '',
completionVarTip: '',
previewTitle: '',
queryTitle: '',
queryPlaceholder: '',
run: '',
},
result: '',
datasetConfig: {
settingTitle: '',
knowledgeTip: '+',
retrieveOneWay: {
title: 'N 1 ',
description: '使 Agent ',
},
retrieveMultiWay: {
title: '',
description: '使使 Rerank API',
},
rerankModelRequired: ' Rerank ',
params: '',
top_k: 'Top K',
top_kTip: '使調',
score_threshold: 'Score ',
score_thresholdTip: '',
retrieveChangeTip: '',
embeddingModelRequired: '',
},
debugAsSingleModel: '',
debugAsMultipleModel: '',
duplicateModel: '',
publishAs: '',
assistantType: {
name: '',
chatAssistant: {
name: '',
description: ' LLM ',
},
agentAssistant: {
name: '',
description: '',
},
},
agent: {
agentMode: 'Agent Mode',
agentModeDes: '',
agentModeType: {
ReACT: 'ReAct',
functionCall: 'Function Calling',
},
setting: {
name: 'Agent ',
description: '',
maximumIterations: {
name: '',
description: '',
},
},
buildInPrompt: '',
firstPrompt: '',
nextIteration: '',
promptPlaceholder: '',
tools: {
name: '',
description: '使',
enabled: '',
},
},
codegen: {
resTitle: '',
apply: '',
overwriteConfirmMessage: '',
instruction: '',
instructionPlaceholder: '',
generate: '',
noDataLine2: '',
applyChanges: '',
noDataLine1: '',
overwriteConfirmTitle: '',
title: '',
generatedCodeTitle: '',
loading: '...',
description: '使',
},
generate: {
template: {
pythonDebugger: {
instruction: '調',
name: 'Python 調',
},
translation: {
name: '',
instruction: '',
},
professionalAnalyst: {
instruction: '',
name: '',
},
excelFormulaExpert: {
name: 'Excel公式專家',
instruction: '使使使Excel公式',
},
travelPlanning: {
instruction: '',
name: '',
},
SQLSorcerer: {
instruction: ' SQL ',
name: 'SQL ',
},
GitGud: {
instruction: '使 Git ',
name: '',
},
meetingTakeaways: {
name: '',
instruction: '',
},
writingsPolisher: {
instruction: '使',
name: '',
},
},
overwriteMessage: '',
tryIt: '',
instruction: '',
description: '使',
generate: '',
apply: '',
overwriteTitle: '',
title: '',
loading: '...',
resTitle: '',
latest: '',
to: '',
insertContext: '',
versions: '',
idealOutput: '',
optimizationNote: '',
version: '',
optional: '',
instructionPlaceHolderTitle: '',
dismiss: '',
optimizePromptTooltip: '',
instructionPlaceHolderLine2: ' JSON ',
instructionPlaceHolderLine1: '使',
instructionPlaceHolderLine3: '',
idealOutputPlaceholder: '調...',
press: '稿',
newNoDataLine1: '.',
codeGenInstructionPlaceHolderLine: '',
},
warningMessage: {
timeoutExceeded: '',
},
noResult: '',
}
export default translation