Skip to content

Commit 30d6b0e

Browse files
committed
translations fix
1 parent 2521607 commit 30d6b0e

File tree

5 files changed

+35
-14
lines changed

5 files changed

+35
-14
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import deepEqual from "fast-deep-equal"
33
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from "react"
44
import { useEvent, useSize } from "react-use"
55
import { useTranslation } from "react-i18next"
6+
import { Trans } from "react-i18next"
67
import styled from "styled-components"
78
import {
89
ClineApiReqInfo,
@@ -786,7 +787,21 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi
786787
<>
787788
<br />
788789
<br />
789-
{t("troubleshootingGuide")}
790+
<Trans
791+
i18nKey="chatRow.troubleshootingGuide"
792+
components={{
793+
Link: (
794+
<a
795+
href="https://github.com/cline/cline/wiki/TroubleShooting-%E2%80%90-%22PowerShell-is-not-recognized-as-an-internal-or-external-command%22"
796+
style={{
797+
color: "inherit",
798+
textDecoration: "underline",
799+
}}>
800+
PowerShell
801+
</a>
802+
),
803+
}}
804+
/>
790805
</>
791806
)}
792807
</p>
@@ -1032,6 +1047,12 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi
10321047
{t("response")}
10331048
</a>
10341049
</div>
1050+
<CodeAccordian
1051+
code={message.text}
1052+
language="json"
1053+
isExpanded={true}
1054+
onToggleExpand={onToggleExpand}
1055+
/>
10351056
</div>
10361057
</>
10371058
)

webview-ui/src/locales/en/translation.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
},
8888
"chatRow": {
8989
"error": "Error",
90-
"mistakeLimitReached": "Mistake limit reached",
91-
"autoApprovalMaxReqReached": "Auto approval max request reached",
90+
"mistakeLimitReached": "Cline is having trouble...",
91+
"autoApprovalMaxReqReached": "Maximum Requests Reached",
9292
"command": {
9393
"ask": "Cline wants to execute this command:",
9494
"say": "Cline executed this command:"
@@ -99,13 +99,13 @@
9999
"tool": "tool",
100100
"resource": "resource"
101101
},
102-
"completionResult": "Completion result",
103-
"apiReqCancelled": "API request cancelled",
104-
"apiStreamingFailed": "API streaming failed",
105-
"apiRequest": "API request",
106-
"apiRequestFailed": "API request failed",
107-
"apiRequestInProgress": "API request in progress",
108-
"followup": "Follow-up",
102+
"completionResult": "Task Completed",
103+
"apiReqCancelled": "API Request Cancelled",
104+
"apiStreamingFailed": "API Streaming Failed",
105+
"apiRequest": "API Request",
106+
"apiRequestFailed": "API Request Failed",
107+
"apiRequestInProgress": "API Request...",
108+
"followup": "Cline has a question:",
109109
"tool": {
110110
"editedExistingFile": {
111111
"ask": "Cline wants to edit this file:",
@@ -129,7 +129,7 @@
129129
"planModeResponse": "Plan Mode Response",
130130
"seeNewChanges": "See new changes",
131131
"commandRequiresApproval": "The model has determined this command requires explicit approval.",
132-
"troubleshootingGuide": "troubleshooting guide",
132+
"troubleshootingGuide": "It seems like you're having Windows PowerShell issues, please see this <Link>troubleshooting guide</Link>",
133133
"clineWantsToViewTopLevelFiles": "Cline wants to view the top level files in this directory:",
134134
"clineViewedTopLevelFiles": "Cline viewed the top level files in this directory:",
135135
"clineWantsToRecursivelyViewFiles": "Cline wants to recursively view all files in this directory:",

webview-ui/src/locales/ja/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"planModeResponse": "計画モード応答",
130130
"seeNewChanges": "新しい変更を見る",
131131
"commandRequiresApproval": "このコマンドは明示的な承認が必要です。",
132-
"troubleshootingGuide": "トラブルシューティングガイド",
132+
"troubleshootingGuide": "Windows PowerShellの問題が発生しているようです。この<Link>トラブルシューティングガイド</Link>をご覧ください。",
133133
"clineWantsToViewTopLevelFiles": "クラインがこのディレクトリのトップレベルファイルを表示したいと考えています:",
134134
"clineViewedTopLevelFiles": "クラインがこのディレクトリのトップレベルファイルを表示しました:",
135135
"clineWantsToRecursivelyViewFiles": "クラインがこのディレクトリのすべてのファイルを再帰的に表示したいと考えています:",

webview-ui/src/locales/zh-cn/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"planModeResponse": "计划模式响应",
125125
"seeNewChanges": "查看新更改",
126126
"commandRequiresApproval": "模型已确定此命令需要明确批准。",
127-
"troubleshootingGuide": "故障排除指南",
127+
"troubleshootingGuide": "看起来你遇到了 Windows PowerShell 问题,请参阅此 <Link>故障排除指南</Link>",
128128
"clineWantsToViewTopLevelFiles": "Cline 想查看此目录中的顶级文件:",
129129
"clineViewedTopLevelFiles": "Cline 查看了此目录中的顶级文件:",
130130
"clineWantsToRecursivelyViewFiles": "Cline 想递归查看此目录中的所有文件:",

webview-ui/src/locales/zh-tw/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"planModeResponse": "計劃模式響應",
125125
"seeNewChanges": "查看新變更",
126126
"commandRequiresApproval": "模型已確定此命令需要明確批准。",
127-
"troubleshootingGuide": "故障排除指南",
127+
"troubleshootingGuide": "看起來您遇到了 Windows PowerShell 問題,請參閱此 <Link>故障排除指南</Link>",
128128
"clineWantsToViewTopLevelFiles": "Cline 想要查看此目錄中的頂層文件:",
129129
"clineViewedTopLevelFiles": "Cline 查看了此目錄中的頂層文件:",
130130
"clineWantsToRecursivelyViewFiles": "Cline 想要遞歸查看此目錄中的所有文件:",

0 commit comments

Comments
 (0)