Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: add missing like i18n (#512)

Joelb23d8a912b95
diff --git a/web/app/components/app/chat/index.tsx b/web/app/components/app/chat/index.tsx
index cb103f52991..6f1f82c7e50 100644
--- a/web/app/components/app/chat/index.tsx
+++ b/web/app/components/app/chat/index.tsx
@@ -200,7 +200,7 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
return (
<Tooltip
selector={`user-feedback-${randomString(16)}`}
- content={(isWebScene || (!isUserFeedback && !isWebScene)) ? isLike ? '取消赞同' : '取消反对' : (!isWebScene && isUserFeedback) ? `用户表示${isLike ? '赞同' : '反对'}` : ''}
+ content={((isWebScene || (!isUserFeedback && !isWebScene)) ? isLike ? t('appDebug.operation.cancelAgree') : t('appDebug.operation.cancelDisagree') : (!isWebScene && isUserFeedback) ? `${t('appDebug.operation.userAction')}${isLike ? t('appDebug.operation.agree') : t('appDebug.operation.disagree')}` : '') as string}
>
<div
className={`relative box-border flex items-center justify-center h-7 w-7 p-0.5 rounded-lg bg-white cursor-pointer text-gray-500 hover:text-gray-800 ${(!isWebScene && isUserFeedback) ? '!cursor-default' : ''}`}
diff --git a/web/i18n/lang/app-debug.en.ts b/web/i18n/lang/app-debug.en.ts
index a19602fc62d..484c58a7cc8 100644
--- a/web/i18n/lang/app-debug.en.ts
+++ b/web/i18n/lang/app-debug.en.ts
@@ -6,6 +6,11 @@ const translation = {
addFeature: 'Add Feature',
automatic: 'Automatic',
stopResponding: 'Stop responding',
+ agree: 'agree',
+ disagree: 'disagree',
+ cancelAgree: 'Cancel agree',
+ cancelDisagree: 'Cancel disagree',
+ userAction: 'User ',
},
notSetAPIKey: {
title: 'LLM provider key has not been set',
diff --git a/web/i18n/lang/app-debug.zh.ts b/web/i18n/lang/app-debug.zh.ts
index d3448dd0387..910e057e80a 100644
--- a/web/i18n/lang/app-debug.zh.ts
+++ b/web/i18n/lang/app-debug.zh.ts
@@ -6,6 +6,11 @@ const translation = {
addFeature: '添加功能',
automatic: '自动编排',
stopResponding: '停止响应',
+ agree: '赞同',
+ disagree: '反对',
+ cancelAgree: '取消赞同',
+ cancelDisagree: '取消反对',
+ userAction: '用户表示',
},
notSetAPIKey: {
title: 'LLM 提供者的密钥未设置',