Skip to content

Commit 32069f2

Browse files
authored
Additional i18n-l10n for Welcome/Home/Chat/History + Spanish language translations (RooCodeInc#1494)
* more i18n * translations fix * de tweak
1 parent 909bf7b commit 32069f2

File tree

17 files changed

+872
-149
lines changed

17 files changed

+872
-149
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
114114
<Trans
115115
i18nKey="announcement.joinOurCommunities"
116116
components={{
117-
DiscordLink: <VSCodeLink href="https://discord.gg/cline" />,
118-
RedditLink: <VSCodeLink href="https://www.reddit.com/r/cline/" />,
117+
DiscordLink: <VSCodeLink style={{ display: "inline" }} href="https://discord.gg/cline" />,
118+
RedditLink: <VSCodeLink style={{ display: "inline" }} href="https://www.reddit.com/r/cline/" />,
119119
}}
120120
/>
121121
</p>

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useExtensionState } from "../../context/ExtensionStateContext"
55
import { AutoApprovalSettings } from "../../../../src/shared/AutoApprovalSettings"
66
import { vscode } from "../../utils/vscode"
77
import { getAsVar, VSC_FOREGROUND, VSC_TITLEBAR_INACTIVE_FOREGROUND, VSC_DESCRIPTION_FOREGROUND } from "../../utils/vscStyles"
8+
import { useTranslation } from "react-i18next"
89

910
interface AutoApproveMenuProps {
1011
style?: React.CSSProperties
@@ -50,6 +51,7 @@ const ACTION_METADATA: {
5051
]
5152

5253
const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
54+
const { t } = useTranslation("translation", { keyPrefix: "autoApproveMenu" })
5355
const { autoApprovalSettings } = useExtensionState()
5456
const [isExpanded, setIsExpanded] = useState(false)
5557
const [isHoveringCollapsibleSection, setIsHoveringCollapsibleSection] = useState(false)
@@ -190,15 +192,15 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
190192
color: getAsVar(VSC_FOREGROUND),
191193
whiteSpace: "nowrap",
192194
}}>
193-
Auto-approve:
195+
{t("autoApprove")}
194196
</span>
195197
<span
196198
style={{
197199
whiteSpace: "nowrap",
198200
overflow: "hidden",
199201
textOverflow: "ellipsis",
200202
}}>
201-
{enabledActions.length === 0 ? "None" : enabledActionsList}
203+
{enabledActions.length === 0 ? t("none") : enabledActionsList}
202204
</span>
203205
<span
204206
className={`codicon codicon-chevron-${isExpanded ? "down" : "right"}`}
@@ -217,8 +219,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
217219
color: getAsVar(VSC_DESCRIPTION_FOREGROUND),
218220
fontSize: "12px",
219221
}}>
220-
Auto-approve allows Cline to perform the following actions without asking for permission. Please use with
221-
caution and only enable if you understand the risks.
222+
{t("autoApproveDescription")}
222223
</div>
223224
{ACTION_METADATA.map((action) => (
224225
<div key={action.id} style={{ margin: "6px 0" }}>
@@ -285,7 +286,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
285286
fontSize: "12px",
286287
marginBottom: "10px",
287288
}}>
288-
Cline will automatically make this many API requests before asking for approval to proceed with the task.
289+
{t("autoApproveMaxRequestsDescription")}
289290
</div>
290291
<div style={{ margin: "6px 0" }}>
291292
<VSCodeCheckbox
@@ -294,15 +295,15 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
294295
const checked = (e.target as HTMLInputElement).checked
295296
updateNotifications(checked)
296297
}}>
297-
Enable Notifications
298+
{t("enableNotifications")}
298299
</VSCodeCheckbox>
299300
<div
300301
style={{
301302
marginLeft: "28px",
302303
color: getAsVar(VSC_DESCRIPTION_FOREGROUND),
303304
fontSize: "12px",
304305
}}>
305-
Receive system notifications when Cline requires approval to proceed or when a task is completed.
306+
{t("enableNotificationsDescription")}
306307
</div>
307308
</div>
308309
</div>

0 commit comments

Comments
 (0)