diff --git a/package-lock.json b/package-lock.json index bc4c85fd..21f4363c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5596,7 +5596,8 @@ "optional": true, "os": [ "android" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-android-arm64": { "version": "4.60.0", @@ -5609,7 +5610,8 @@ "optional": true, "os": [ "android" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-darwin-arm64": { "version": "4.60.0", @@ -5622,7 +5624,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-darwin-x64": { "version": "4.60.0", @@ -5635,7 +5638,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-freebsd-arm64": { "version": "4.60.0", @@ -5648,7 +5652,8 @@ "optional": true, "os": [ "freebsd" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-freebsd-x64": { "version": "4.60.0", @@ -5661,7 +5666,8 @@ "optional": true, "os": [ "freebsd" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { "version": "4.60.0", @@ -5674,7 +5680,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { "version": "4.60.0", @@ -5687,7 +5694,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm64-gnu": { "version": "4.60.0", @@ -5700,7 +5708,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm64-musl": { "version": "4.60.0", @@ -5713,7 +5722,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-loong64-gnu": { "version": "4.60.0", @@ -5726,7 +5736,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-loong64-musl": { "version": "4.60.0", @@ -5739,7 +5750,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { "version": "4.60.0", @@ -5752,7 +5764,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-ppc64-musl": { "version": "4.60.0", @@ -5765,7 +5778,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { "version": "4.60.0", @@ -5778,7 +5792,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-riscv64-musl": { "version": "4.60.0", @@ -5791,7 +5806,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-s390x-gnu": { "version": "4.60.0", @@ -5804,7 +5820,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-x64-gnu": { "version": "4.60.0", @@ -5817,7 +5834,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-x64-musl": { "version": "4.60.0", @@ -5830,7 +5848,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-openbsd-x64": { "version": "4.60.0", @@ -5843,7 +5862,8 @@ "optional": true, "os": [ "openbsd" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-openharmony-arm64": { "version": "4.60.0", @@ -5856,7 +5876,8 @@ "optional": true, "os": [ "openharmony" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-arm64-msvc": { "version": "4.60.0", @@ -5869,7 +5890,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-ia32-msvc": { "version": "4.60.0", @@ -5882,7 +5904,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-x64-gnu": { "version": "4.60.0", @@ -5895,7 +5918,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-x64-msvc": { "version": "4.60.0", @@ -5908,7 +5932,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@sap-ai-sdk/ai-api": { "version": "2.7.0", @@ -22145,6 +22170,7 @@ "os": [ "aix" ], + "peer": true, "engines": { "node": ">=18" } @@ -22161,6 +22187,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=18" } @@ -22177,6 +22204,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=18" } @@ -22193,6 +22221,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=18" } @@ -22209,6 +22238,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=18" } @@ -22225,6 +22255,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=18" } @@ -22241,6 +22272,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -22257,6 +22289,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -22273,6 +22306,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22289,6 +22323,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22305,6 +22340,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22321,6 +22357,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22337,6 +22374,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22353,6 +22391,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22369,6 +22408,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22385,6 +22425,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22401,6 +22442,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -22417,6 +22459,7 @@ "os": [ "netbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -22433,6 +22476,7 @@ "os": [ "netbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -22449,6 +22493,7 @@ "os": [ "openbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -22465,6 +22510,7 @@ "os": [ "openbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -22481,6 +22527,7 @@ "os": [ "openharmony" ], + "peer": true, "engines": { "node": ">=18" } @@ -22497,6 +22544,7 @@ "os": [ "sunos" ], + "peer": true, "engines": { "node": ">=18" } @@ -22513,6 +22561,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=18" } @@ -22529,6 +22578,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=18" } @@ -22545,6 +22595,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=18" } @@ -22600,6 +22651,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } diff --git a/webview-ui/src/components/chat/CommandOutputRow.tsx b/webview-ui/src/components/chat/CommandOutputRow.tsx index 97656752..cff727af 100644 --- a/webview-ui/src/components/chat/CommandOutputRow.tsx +++ b/webview-ui/src/components/chat/CommandOutputRow.tsx @@ -210,9 +210,7 @@ export const CommandOutputRow = memo( onCancelCommand?.() } else { // For regular terminal mode, show a message - alert( - "This command is running in the VSCode terminal. You can manually stop it using Ctrl+C in the terminal, or switch to Background Execution mode in settings for cancellable commands.", - ) + alert(t("commandOutput.terminalWarning")) } }} size="sm" diff --git a/webview-ui/src/components/chat/FeatureTip.tsx b/webview-ui/src/components/chat/FeatureTip.tsx index 147a6b6d..6e88d5a0 100644 --- a/webview-ui/src/components/chat/FeatureTip.tsx +++ b/webview-ui/src/components/chat/FeatureTip.tsx @@ -13,37 +13,37 @@ const FEATURE_TIPS: FeatureTipItem[] = [ text: i18next.t("featureTips.doubleCheckCompletion"), }, { - text: "Add a .clinerules file to your project root to give Cline project-specific instructions.", + text: i18next.t("featureTips.clinerulesFile"), }, { - text: "Switch to Plan Mode to discuss and plan an approach before Cline takes action.", + text: i18next.t("featureTips.planMode"), }, { - text: "Use @ in the chat input to add files, folders, or URLs as context for your task.", + text: i18next.t("featureTips.useAtContext"), }, { - text: "Set up MCP Servers to give Cline access to external tools and APIs.", + text: i18next.t("featureTips.mcpServers"), }, { - text: "Cline creates checkpoints after changes — you can always restore to a previous state.", + text: i18next.t("featureTips.checkpoints"), }, { - text: "Use /compact to condense long conversations and free up context window space.", + text: i18next.t("featureTips.compactCommand"), }, { - text: "Enable auto-approve for read-only tools like file reads to speed up exploration.", + text: i18next.t("featureTips.autoApprove"), }, { - text: "Use the quote button to select text from Cline's response and reference it in your reply.", + text: i18next.t("featureTips.quoteButton"), }, { - text: "You can drag and drop images into the chat to share screenshots with Cline.", + text: i18next.t("featureTips.dragDropImages"), }, { - text: "Cline can browse websites — ask it to test your local dev server in the browser.", + text: i18next.t("featureTips.browseWebsites"), }, { - text: "Use /reportbug to quickly file a GitHub issue with diagnostic context included.", + text: i18next.t("featureTips.reportBug"), }, { text: i18next.t("featureTips.disableTips"), diff --git a/webview-ui/src/components/chat/SubagentStatusRow.tsx b/webview-ui/src/components/chat/SubagentStatusRow.tsx index 833969b3..758dc92a 100644 --- a/webview-ui/src/components/chat/SubagentStatusRow.tsx +++ b/webview-ui/src/components/chat/SubagentStatusRow.tsx @@ -265,7 +265,7 @@ export default function SubagentStatusRow({ message, isLast, lastModifiedMessage ) : ( )} - {isExpanded ? "Hide output" : "Show output"} + {isExpanded ? t("subagent.hideSubagentOutput") : t("subagent.showSubagentOutput")} )} {shouldShowStats && !hasDetails && latestToolCallText && ( diff --git a/webview-ui/src/components/chat/TaskFeedbackButtons.tsx b/webview-ui/src/components/chat/TaskFeedbackButtons.tsx index 4c7f1c86..a7655045 100644 --- a/webview-ui/src/components/chat/TaskFeedbackButtons.tsx +++ b/webview-ui/src/components/chat/TaskFeedbackButtons.tsx @@ -108,7 +108,7 @@ const TaskFeedbackButtons: React.FC = ({ messageTs, is href="https://github.com/cline/cline/issues/new?template=bug_report.yml" appearance="icon" title="Report a bug" - aria-label="Report a bug"> + aria-label={t("reportBug.title")}> */} diff --git a/webview-ui/src/components/chat/auto-approve-menu/AutoApproveBar.tsx b/webview-ui/src/components/chat/auto-approve-menu/AutoApproveBar.tsx index 02bd60ce..d6a15b28 100644 --- a/webview-ui/src/components/chat/auto-approve-menu/AutoApproveBar.tsx +++ b/webview-ui/src/components/chat/auto-approve-menu/AutoApproveBar.tsx @@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next" import { useExtensionState } from "@/context/ExtensionStateContext" import { getAsVar, VSC_TITLEBAR_INACTIVE_FOREGROUND } from "@/utils/vscStyles" import AutoApproveModal from "./AutoApproveModal" -import { ACTION_METADATA } from "./constants" +import { getActionMetadata } from "./constants" interface AutoApproveBarProps { style?: React.CSSProperties @@ -31,7 +31,7 @@ const AutoApproveBar = ({ style }: AutoApproveBarProps) => { (key) => autoApprovalSettings.actions[key as keyof typeof autoApprovalSettings.actions], ) const enabledActions = enabledActionsNames.map((action) => { - return ACTION_METADATA.flatMap((a) => [a, a.subAction]).find((a) => a?.id === action) + return getActionMetadata().flatMap((a) => [a, a.subAction]).find((a) => a?.id === action) }) // Filter out parent actions if their subaction is also enabled (show only subaction) @@ -167,7 +167,7 @@ const AutoApproveBar = ({ style }: AutoApproveBarProps) => { = ({ isGlobal, ruleType, existingHoo setError(null) setIsExpanded(false) } catch (err) { - setError(err instanceof Error ? err.message : "Failed to create skill") + setError(err instanceof Error ? err.message : t("rules.newRule.failedToCreateSkill")) } return } diff --git a/webview-ui/src/components/common/Demo.tsx b/webview-ui/src/components/common/Demo.tsx index 903f583b..8993845f 100644 --- a/webview-ui/src/components/common/Demo.tsx +++ b/webview-ui/src/components/common/Demo.tsx @@ -53,16 +53,16 @@ function Demo() { - A Custom Header Title + {t("demo.customHeaderTitle")} - Another Custom Title + {t("demo.anotherCustomTitle")} - Title Is Custom + {t("demo.titleIsCustom")} - Custom Title + {t("demo.customTitle")} {rowData.map((row, index) => ( @@ -77,13 +77,13 @@ function Demo() {
- + - + - +
@@ -93,30 +93,30 @@ function Demo() { - Add - Remove + {t("demo.add")} + {t("demo.remove")} - Badge - Checkbox + {t("demo.badge")} + {t("demo.checkbox")} - Option 1 - Option 2 + {t("demo.option1")} + {t("demo.option2")} - Link + {t("demo.link")} - Tab 1 - Tab 2 - Panel View 1 - Panel View 2 + {t("demo.tab1")} + {t("demo.tab2")} + {t("demo.panelView1")} + {t("demo.panelView2")} - Radio 1 - Radio 2 + {t("demo.radio1")} + {t("demo.radio2")} - Tag - + {t("demo.tag")} + ) diff --git a/webview-ui/src/components/mcp/chat-display/LinkPreview.tsx b/webview-ui/src/components/mcp/chat-display/LinkPreview.tsx index e7ad1fa0..80d7fe33 100644 --- a/webview-ui/src/components/mcp/chat-display/LinkPreview.tsx +++ b/webview-ui/src/components/mcp/chat-display/LinkPreview.tsx @@ -81,7 +81,7 @@ const LinkPreview: React.FC = ({ url }) => { setHasCompletedFetch(true) } else { setError("network") - setErrorMessage("Failed to fetch Open Graph data") + setErrorMessage(t("mcp.chatDisplay.failedToFetchOpenGraph")) setLoading(false) setHasCompletedFetch(true) } @@ -93,7 +93,7 @@ const LinkPreview: React.FC = ({ url }) => { }, 1000) } catch (err) { setError("general") - setErrorMessage(err instanceof Error ? err.message : "Unknown error occurred") + setErrorMessage(err instanceof Error ? err.message : t("mcp.chatDisplay.unknownError")) setLoading(false) setHasCompletedFetch(true) cleanup() diff --git a/webview-ui/src/components/mcp/configuration/tabs/add-server/AddRemoteServerForm.tsx b/webview-ui/src/components/mcp/configuration/tabs/add-server/AddRemoteServerForm.tsx index 239d9314..ed6974d5 100644 --- a/webview-ui/src/components/mcp/configuration/tabs/add-server/AddRemoteServerForm.tsx +++ b/webview-ui/src/components/mcp/configuration/tabs/add-server/AddRemoteServerForm.tsx @@ -83,7 +83,7 @@ const AddRemoteServerForm = ({ onServerAdded }: { onServerAdded: () => void }) = setServerName((e.target as HTMLInputElement).value) setError("") }} - placeholder="mcp-server" + placeholder={t("mcp.addRemoteServer.serverNamePlaceholder")} value={serverName}> {t("mcp.addRemoteServer.serverName")}
@@ -97,7 +97,7 @@ const AddRemoteServerForm = ({ onServerAdded }: { onServerAdded: () => void }) = setServerUrl((e.target as HTMLInputElement).value) setError("") }} - placeholder="https://example.com/mcp-server" + placeholder={t("mcp.addRemoteServer.serverUrlPlaceholder")} value={serverUrl}> {t("mcp.addRemoteServer.serverUrl")} diff --git a/webview-ui/src/components/settings/BasetenModelPicker.tsx b/webview-ui/src/components/settings/BasetenModelPicker.tsx index 6d632a9b..7d8bee08 100644 --- a/webview-ui/src/components/settings/BasetenModelPicker.tsx +++ b/webview-ui/src/components/settings/BasetenModelPicker.tsx @@ -218,7 +218,7 @@ const BasetenModelPicker: React.FC = ({ isPopup, curren value={searchTerm}> {searchTerm && (
{ setSearchTerm("") diff --git a/webview-ui/src/components/settings/ClineModelPicker.tsx b/webview-ui/src/components/settings/ClineModelPicker.tsx index 7aef8292..2183b8cb 100644 --- a/webview-ui/src/components/settings/ClineModelPicker.tsx +++ b/webview-ui/src/components/settings/ClineModelPicker.tsx @@ -465,7 +465,7 @@ const ClineModelPicker: React.FC = ({ isPopup, currentMod value={searchTerm}> {searchTerm && (
{ setSearchTerm("") @@ -567,7 +567,7 @@ const ClineModelPicker: React.FC = ({ isPopup, currentMod currentMode={currentMode} defaultEffort={showAdaptiveThinkingEffort ? adaptiveThinkingDefaultEffort : "medium"} description={showAdaptiveThinkingEffort ? t("settings.adaptiveThinkingDescription") : undefined} - label={showAdaptiveThinkingEffort ? "Adaptive Thinking" : undefined} + label={showAdaptiveThinkingEffort ? t("settings.adaptiveThinking") : undefined} /> )} diff --git a/webview-ui/src/components/settings/GroqModelPicker.tsx b/webview-ui/src/components/settings/GroqModelPicker.tsx index b1c92813..4f969261 100644 --- a/webview-ui/src/components/settings/GroqModelPicker.tsx +++ b/webview-ui/src/components/settings/GroqModelPicker.tsx @@ -215,7 +215,7 @@ const GroqModelPicker: React.FC = ({ isPopup, currentMode value={searchTerm}> {searchTerm && (
{ setSearchTerm("") diff --git a/webview-ui/src/components/settings/HicapModelPicker.tsx b/webview-ui/src/components/settings/HicapModelPicker.tsx index c96e0de4..450ff1c8 100644 --- a/webview-ui/src/components/settings/HicapModelPicker.tsx +++ b/webview-ui/src/components/settings/HicapModelPicker.tsx @@ -187,7 +187,7 @@ const HicapModelPicker: React.FC = ({ isPopup, currentMod value={searchTerm}> {searchTerm && (
{ setSearchTerm("") diff --git a/webview-ui/src/components/settings/HuggingFaceModelPicker.tsx b/webview-ui/src/components/settings/HuggingFaceModelPicker.tsx index b1c62052..822c8582 100644 --- a/webview-ui/src/components/settings/HuggingFaceModelPicker.tsx +++ b/webview-ui/src/components/settings/HuggingFaceModelPicker.tsx @@ -187,7 +187,7 @@ const HuggingFaceModelPicker: React.FC = ({ isPopup value={searchTerm}> {searchTerm && (
{ setSearchTerm("") diff --git a/webview-ui/src/components/settings/OllamaModelPicker.tsx b/webview-ui/src/components/settings/OllamaModelPicker.tsx index ebb64428..eb4c1ca9 100644 --- a/webview-ui/src/components/settings/OllamaModelPicker.tsx +++ b/webview-ui/src/components/settings/OllamaModelPicker.tsx @@ -146,7 +146,7 @@ const OllamaModelPicker: React.FC = ({ ollamaModels, sel value={searchTerm}> {searchTerm && (
{ handleModelChange("") diff --git a/webview-ui/src/components/settings/OpenRouterModelPicker.tsx b/webview-ui/src/components/settings/OpenRouterModelPicker.tsx index eeab6c5b..84143761 100644 --- a/webview-ui/src/components/settings/OpenRouterModelPicker.tsx +++ b/webview-ui/src/components/settings/OpenRouterModelPicker.tsx @@ -276,7 +276,7 @@ const OpenRouterModelPicker: React.FC = ({ isPopup, value={searchTerm}> {searchTerm && (
{ setSearchTerm("") @@ -382,7 +382,7 @@ const OpenRouterModelPicker: React.FC = ({ isPopup, ? "Use None to disable adaptive thinking. Higher effort increases response detail and token usage." : undefined } - label={showAdaptiveThinkingEffort ? "Adaptive Thinking" : undefined} + label={showAdaptiveThinkingEffort ? t("settings.adaptiveThinking") : undefined} /> )} diff --git a/webview-ui/src/components/settings/RequestyModelPicker.tsx b/webview-ui/src/components/settings/RequestyModelPicker.tsx index faf2d97b..1b5dfa3b 100644 --- a/webview-ui/src/components/settings/RequestyModelPicker.tsx +++ b/webview-ui/src/components/settings/RequestyModelPicker.tsx @@ -210,7 +210,7 @@ const RequestyModelPicker: React.FC = ({ isPopup, base value={searchTerm}> {searchTerm && (
{ handleModelChange("") diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx index 3e326d67..622cea72 100644 --- a/webview-ui/src/components/settings/SettingsView.tsx +++ b/webview-ui/src/components/settings/SettingsView.tsx @@ -85,8 +85,8 @@ export const SETTINGS_TABS: SettingsTab[] = [ { id: "remote-config", name: "Remote Config", - tooltipText: "Remotely configured fields", - headerText: "Remote Config", + tooltipText: t("settingsSections.remoteConfigTooltip"), + headerText: t("settingsSections.remoteConfigHeader"), icon: HardDriveDownload, hidden: ({ activeOrganization } = { activeOrganization: null }) => !activeOrganization || !isAdminOrOwner(activeOrganization), diff --git a/webview-ui/src/components/settings/ThinkingBudgetSlider.tsx b/webview-ui/src/components/settings/ThinkingBudgetSlider.tsx index df8dc9ca..74598920 100644 --- a/webview-ui/src/components/settings/ThinkingBudgetSlider.tsx +++ b/webview-ui/src/components/settings/ThinkingBudgetSlider.tsx @@ -158,7 +158,7 @@ const ThinkingBudgetSlider = ({ currentMode, maxBudget, showEnableToggle = true $min={0} $value={localValue} aria-describedby="thinking-budget-description" - aria-label={`Thinking budget: ${localValue.toLocaleString()} tokens`} + aria-label={t("settings.thinkingBudgetLabel", { value: localValue.toLocaleString() })} aria-valuemax={maxBudget || ANTHROPIC_MAX_THINKING_BUDGET} aria-valuemin={ANTHROPIC_MIN_THINKING_BUDGET} aria-valuenow={localValue} diff --git a/webview-ui/src/components/settings/VercelModelPicker.tsx b/webview-ui/src/components/settings/VercelModelPicker.tsx index 502e1287..d5bc3fb9 100644 --- a/webview-ui/src/components/settings/VercelModelPicker.tsx +++ b/webview-ui/src/components/settings/VercelModelPicker.tsx @@ -232,7 +232,7 @@ const VercelModelPicker: React.FC = ({ isPopup, currentM value={searchTerm}> {searchTerm && (
{ setSearchTerm("") @@ -294,7 +294,7 @@ const VercelModelPicker: React.FC = ({ isPopup, currentM ? "Use None to disable adaptive thinking. Higher effort increases response detail and token usage." : undefined } - label={showAdaptiveThinkingEffort ? "Adaptive Thinking" : undefined} + label={showAdaptiveThinkingEffort ? t("settings.adaptiveThinking") : undefined} /> )} diff --git a/webview-ui/src/components/settings/common/ModelAutocomplete.tsx b/webview-ui/src/components/settings/common/ModelAutocomplete.tsx index 70f95910..b29bd5e5 100644 --- a/webview-ui/src/components/settings/common/ModelAutocomplete.tsx +++ b/webview-ui/src/components/settings/common/ModelAutocomplete.tsx @@ -2,6 +2,7 @@ import { ModelInfo } from "@shared/api" import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react" import Fuse from "fuse.js" import { KeyboardEvent, useEffect, useId, useMemo, useRef, useState } from "react" +import { useTranslation } from "react-i18next" import styled from "styled-components" import { highlight } from "../../history/HistoryView" @@ -21,9 +22,12 @@ export const ModelAutocomplete = ({ selectedModelId, onChange, zIndex = AUTOCOMPLETE_Z_INDEX, - label = "Model", - placeholder = "Search and select a model...", + label, + placeholder, }: ModelAutocompleteProps) => { + const { t } = useTranslation("settings") + const effectiveLabel = label ?? t("settings.modelAutocomplete.modelLabel") + const effectivePlaceholder = placeholder ?? t("settings.modelAutocomplete.searchPlaceholder") const [searchTerm, setSearchTerm] = useState(selectedModelId || "") const [isDropdownVisible, setIsDropdownVisible] = useState(false) const [selectedIndex, setSelectedIndex] = useState(-1) @@ -154,7 +158,7 @@ export const ModelAutocomplete = ({
@@ -179,7 +183,7 @@ export const ModelAutocomplete = ({ setIsDropdownVisible(true) }} onKeyDown={handleKeyDown} - placeholder={placeholder} + placeholder={effectivePlaceholder} role="combobox" style={{ width: "100%", @@ -189,7 +193,7 @@ export const ModelAutocomplete = ({ value={searchTerm}> {searchTerm && (
{ setSearchTerm("") @@ -207,7 +211,7 @@ export const ModelAutocomplete = ({ {isDropdownVisible && ( {searchTerm && searchTerm !== currentRegion && (
{ setSearchTerm("") diff --git a/webview-ui/src/components/settings/providers/DifyProvider.tsx b/webview-ui/src/components/settings/providers/DifyProvider.tsx index 127a4878..5ece5785 100644 --- a/webview-ui/src/components/settings/providers/DifyProvider.tsx +++ b/webview-ui/src/components/settings/providers/DifyProvider.tsx @@ -39,7 +39,7 @@ export const DifyProvider = ({ showModelOptions, isPopup, currentMode }: DifyPro onChange={(value) => { handleFieldChange("difyBaseUrl", value) }} - placeholder={"Enter base URL..."} + placeholder={t("providers.dify.baseUrlPlaceholder")} style={{ width: "100%", marginBottom: 10 }} type="text"> {t("providers.dify.baseUrl")} diff --git a/webview-ui/src/components/settings/providers/LMStudioProvider.tsx b/webview-ui/src/components/settings/providers/LMStudioProvider.tsx index 73bab85b..49a9ff3b 100644 --- a/webview-ui/src/components/settings/providers/LMStudioProvider.tsx +++ b/webview-ui/src/components/settings/providers/LMStudioProvider.tsx @@ -140,7 +140,7 @@ export const LMStudioProvider = ({ currentMode }: LMStudioProviderProps) => { currentMode, ) } - placeholder={"e.g. meta-llama-3.1-8b-instruct"} + placeholder={t("providers.lmStudio.modelExample")} style={{ width: "100%" }} /> )} diff --git a/webview-ui/src/components/settings/providers/LiteLlmProvider.tsx b/webview-ui/src/components/settings/providers/LiteLlmProvider.tsx index 42c55323..6722f99b 100644 --- a/webview-ui/src/components/settings/providers/LiteLlmProvider.tsx +++ b/webview-ui/src/components/settings/providers/LiteLlmProvider.tsx @@ -75,7 +75,7 @@ export const LiteLlmProvider = ({ showModelOptions, isPopup, currentMode }: Lite }), ) }} - placeholder={"Default: http://localhost:4000"} + placeholder={t("providers.liteLlm.defaultBaseUrl")} style={{ width: "100%" }} type="text">
diff --git a/webview-ui/src/components/settings/providers/OllamaProvider.tsx b/webview-ui/src/components/settings/providers/OllamaProvider.tsx index 0da2bc8a..18162763 100644 --- a/webview-ui/src/components/settings/providers/OllamaProvider.tsx +++ b/webview-ui/src/components/settings/providers/OllamaProvider.tsx @@ -85,7 +85,7 @@ export const OllamaProvider = ({ showModelOptions, currentMode }: OllamaProvider onModelChange={(modelId) => { handleModeFieldChange({ plan: "planModeOllamaModelId", act: "actModeOllamaModelId" }, modelId, currentMode) }} - placeholder={ollamaModels.length > 0 ? t("settings.searchSelectModel") : "e.g. llama3.1"} + placeholder={ollamaModels.length > 0 ? t("settings.searchSelectModel") : t("providers.ollama.modelExample")} selectedModelId={ollamaModelId || ""} /> @@ -97,7 +97,7 @@ export const OllamaProvider = ({ showModelOptions, currentMode }: OllamaProvider handleFieldChange("ollamaApiOptionsCtxNum", v || undefined)} - placeholder={"e.g. 32768"} + placeholder={t("providers.ollama.contextLengthExample")} style={{ width: "100%" }}> {t("providers.ollama.modelContextWindow")} diff --git a/webview-ui/src/components/settings/providers/TogetherProvider.tsx b/webview-ui/src/components/settings/providers/TogetherProvider.tsx index 67f76a63..ff4c3ba4 100644 --- a/webview-ui/src/components/settings/providers/TogetherProvider.tsx +++ b/webview-ui/src/components/settings/providers/TogetherProvider.tsx @@ -37,7 +37,7 @@ export const TogetherProvider = ({ showModelOptions, isPopup, currentMode }: Tog onChange={(value) => handleModeFieldChange({ plan: "planModeTogetherModelId", act: "actModeTogetherModelId" }, value, currentMode) } - placeholder={"Enter Model ID..."} + placeholder={t("providers.together.modelIdPlaceholder")} style={{ width: "100%" }}> {t("providers.openaiCompatible.modelId")} diff --git a/webview-ui/src/components/settings/providers/VSCodeLmProvider.tsx b/webview-ui/src/components/settings/providers/VSCodeLmProvider.tsx index 08e0edce..2012135a 100644 --- a/webview-ui/src/components/settings/providers/VSCodeLmProvider.tsx +++ b/webview-ui/src/components/settings/providers/VSCodeLmProvider.tsx @@ -84,9 +84,9 @@ export const VSCodeLmProvider = ({ currentMode }: VSCodeLmProviderProps) => { marginTop: "5px", color: "var(--vscode-descriptionForeground)", }}> - Use models from your GitHub Copilot subscription. Install the{" "} - Copilot extension and - enable Claude models in Copilot settings to get started. + {t("providers.vscodeLm.description")}{" "} + {t("providers.vscodeLm.copilotExtension")}{" "} + {t("providers.vscodeLm.enableClaudeModels")}

)} diff --git a/webview-ui/src/components/settings/sections/ApiConfigurationSection.tsx b/webview-ui/src/components/settings/sections/ApiConfigurationSection.tsx index 021471e9..17101db1 100644 --- a/webview-ui/src/components/settings/sections/ApiConfigurationSection.tsx +++ b/webview-ui/src/components/settings/sections/ApiConfigurationSection.tsx @@ -83,8 +83,7 @@ const ApiConfigurationSection = ({ renderSectionHeader, initialModelTab }: ApiCo {t("settings.useDifferentModels")}

- Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be - helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on. + {t("settings.useDifferentModelsDescription")}

diff --git a/webview-ui/src/components/settings/utils/providerUtils.ts b/webview-ui/src/components/settings/utils/providerUtils.ts index b1408d1c..7715d8db 100644 --- a/webview-ui/src/components/settings/utils/providerUtils.ts +++ b/webview-ui/src/components/settings/utils/providerUtils.ts @@ -1,3 +1,4 @@ +import i18next from "i18next" import { ApiConfiguration, ApiProvider, @@ -391,7 +392,7 @@ export function normalizeApiConfiguration( selectedModelInfo: basetenModelInfo || basetenModels[finalBasetenModelId as keyof typeof basetenModels] || basetenModels[basetenDefaultModelId] || { - description: "Baseten model", + description: i18next.t("common:providers.baseten.modelDescription"), }, } } @@ -422,7 +423,7 @@ export function normalizeApiConfiguration( supportsPromptCache: false, inputPrice: 0, outputPrice: 0, - description: "Dify workflow - model selection is configured in your Dify application", + description: i18next.t("common:providers.dify.workflowDescription"), }, } case "vercel-ai-gateway": diff --git a/webview-ui/src/components/welcome/SuggestedTasks.tsx b/webview-ui/src/components/welcome/SuggestedTasks.tsx index f9926385..091052d6 100644 --- a/webview-ui/src/components/welcome/SuggestedTasks.tsx +++ b/webview-ui/src/components/welcome/SuggestedTasks.tsx @@ -3,10 +3,11 @@ import React from "react" import { useTranslation } from "react-i18next" import { TaskServiceClient } from "@/services/grpc-client" import QuickWinCard from "./QuickWinCard" -import { QuickWinTask, quickWinTasks } from "./quickWinTasks" +import { useQuickWinTasks } from "./quickWinTasks" export const SuggestedTasks: React.FC<{ shouldShowQuickWins: boolean }> = ({ shouldShowQuickWins }) => { const { t } = useTranslation("common") + const quickWinTasks = useQuickWinTasks() const handleExecuteQuickWin = async (prompt: string) => { await TaskServiceClient.newTask(NewTaskRequest.create({ text: prompt, images: [] })) } @@ -22,7 +23,7 @@ export const SuggestedTasks: React.FC<{ shouldShowQuickWins: boolean }> = ({ sho
{" "} - {quickWinTasks.map((task: QuickWinTask) => ( + {quickWinTasks.map((task) => ( handleExecuteQuickWin(task.prompt)} task={task} /> ))}
diff --git a/webview-ui/src/components/worktrees/CreateWorktreeModal.tsx b/webview-ui/src/components/worktrees/CreateWorktreeModal.tsx index ba24f060..bf3e521a 100644 --- a/webview-ui/src/components/worktrees/CreateWorktreeModal.tsx +++ b/webview-ui/src/components/worktrees/CreateWorktreeModal.tsx @@ -90,7 +90,7 @@ const CreateWorktreeModal = ({ open, onClose, openAfterCreate = false, onSuccess onClose() } } catch (err) { - setCreateError(err instanceof Error ? err.message : "Failed to create worktree") + setCreateError(err instanceof Error ? err.message : t("worktrees.errors.failedToCreate")) } finally { setIsCreating(false) } diff --git a/webview-ui/src/components/worktrees/WorktreesView.tsx b/webview-ui/src/components/worktrees/WorktreesView.tsx index 2a864dc5..5ecb3a97 100644 --- a/webview-ui/src/components/worktrees/WorktreesView.tsx +++ b/webview-ui/src/components/worktrees/WorktreesView.tsx @@ -75,7 +75,7 @@ const WorktreesView = ({ onDone }: WorktreesViewProps) => { setGitRootPath((prev) => (prev === response.gitRootPath ? prev : response.gitRootPath)) setError((prev) => (response.error ? response.error : prev === null ? null : prev)) } catch (err) { - setError(err instanceof Error ? err.message : "Failed to load worktrees") + setError(err instanceof Error ? err.message : t("worktrees.errors.failedToLoad")) } finally { setIsLoading(false) } @@ -146,7 +146,7 @@ const WorktreesView = ({ onDone }: WorktreesViewProps) => { await loadWorktrees() } } catch (err) { - setError(err instanceof Error ? err.message : "Failed to delete worktree") + setError(err instanceof Error ? err.message : t("worktrees.errors.failedToDelete")) } }, [loadWorktrees], @@ -212,7 +212,7 @@ const WorktreesView = ({ onDone }: WorktreesViewProps) => { setMergeError(result.message) } } catch (err) { - setMergeError(err instanceof Error ? err.message : "Failed to merge worktree") + setMergeError(err instanceof Error ? err.message : t("worktrees.errors.failedToMerge")) } finally { setIsMerging(false) } @@ -234,7 +234,7 @@ Please help me resolve these merge conflicts, then complete the merge, and delet // Close worktrees view to show the chat with the new task onDone() } catch (err) { - setMergeError(err instanceof Error ? err.message : "Failed to create task for Cline") + setMergeError(err instanceof Error ? err.message : t("worktrees.errors.failedToCreateTask")) } }, [mergeResult, mergeWorktree, closeMergeModal, onDone]) diff --git a/webview-ui/src/locales/en/common-misc.json b/webview-ui/src/locales/en/common-misc.json index ea93eac9..10438082 100644 --- a/webview-ui/src/locales/en/common-misc.json +++ b/webview-ui/src/locales/en/common-misc.json @@ -124,7 +124,9 @@ "failedToAdd": "Failed to add server", "connecting": "Connecting...", "addServer": "Add Server", - "editConfiguration": "Edit Configuration" + "editConfiguration": "Edit Configuration", + "serverNamePlaceholder": "mcp-server", + "serverUrlPlaceholder": "https://example.com/mcp-server" }, "configureView": { "protocolIntro": "The ", @@ -206,7 +208,9 @@ "networkError": "Network error loading preview", "noTitle": "No title", "noDescription": "No description available", - "somethingWrongLink": "Something went wrong displaying this link preview" + "somethingWrongLink": "Something went wrong displaying this link preview", + "failedToFetchOpenGraph": "Failed to fetch Open Graph data", + "unknownError": "Unknown error occurred" }, "timeout": { "30seconds": "30 seconds", @@ -255,6 +259,13 @@ "requireGit": "Worktrees require a git repository. Please initialize git to use worktrees.", "retry": "Retry", "noWorktrees": "No worktrees found.", + "errors": { + "failedToLoad": "Failed to load worktrees", + "failedToDelete": "Failed to delete worktree", + "failedToMerge": "Failed to merge worktree", + "failedToCreateTask": "Failed to create task for Cline", + "failedToCreate": "Failed to create worktree" + }, "primary": "Primary", "primaryTooltip": "The original worktree where your .git directory lives.", "current": "Current", @@ -373,7 +384,8 @@ "createFile": "Create file", "newFile": "New file", "skillNameInvalid": "Skill name can only contain letters, numbers, dashes, and underscores", - "extensionInvalid": "Only .md, .txt, or no file extension allowed" + "extensionInvalid": "Only .md, .txt, or no file extension allowed", + "failedToCreateSkill": "Failed to create skill" }, "ruleRow": { "agentsTooltip": "Searches recursively for all AGENTS.md files in the workspace when a top-level AGENTS.md exists", @@ -387,7 +399,29 @@ "demo": { "helloWorld": "Hello World!", "howdy": "Howdy!", - "cellData": "Cell Data" + "cellData": "Cell Data", + "customHeaderTitle": "A Custom Header Title", + "anotherCustomTitle": "Another Custom Title", + "titleIsCustom": "Title Is Custom", + "customTitle": "Custom Title", + "matchCase": "Match Case", + "matchWholeWord": "Match Whole Word", + "useRegularExpression": "Use Regular Expression", + "add": "Add", + "remove": "Remove", + "badge": "Badge", + "checkbox": "Checkbox", + "option1": "Option 1", + "option2": "Option 2", + "link": "Link", + "tab1": "Tab 1", + "tab2": "Tab 2", + "panelView1": "Panel View 1", + "panelView2": "Panel View 2", + "radio1": "Radio 1", + "radio2": "Radio 2", + "tag": "Tag", + "textAreaPlaceholder": "Text Area" }, "history": { "newest": "Newest", diff --git a/webview-ui/src/locales/en/common.json b/webview-ui/src/locales/en/common.json index 53e75c3d..94353819 100644 --- a/webview-ui/src/locales/en/common.json +++ b/webview-ui/src/locales/en/common.json @@ -431,5 +431,13 @@ }, "historyPreview": { "noRecentTasks": "No recent tasks" + }, + "providers": { + "baseten": { + "modelDescription": "Baseten model" + }, + "dify": { + "workflowDescription": "Dify workflow - model selection is configured in your Dify application" + } } } diff --git a/webview-ui/src/locales/en/settings.json b/webview-ui/src/locales/en/settings.json index 024ced42..66f80326 100644 --- a/webview-ui/src/locales/en/settings.json +++ b/webview-ui/src/locales/en/settings.json @@ -68,7 +68,8 @@ "actMode": "Act Mode", "useDifferentModels": "Use different models for Plan and Act modes", "useDifferentModelsDescription": "Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on.", - "modeSwitchPersistDescription": "Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on." + "modeSwitchPersistDescription": "Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be helpful e.g. when using a strong reasoning model to architect a plan for a cheaper coding model to act on.", + "thinkingBudgetLabel": "Thinking budget: {{value}} tokens" }, "settingsSections": { "allowErrorReporting": "Allow error and usage reporting", @@ -359,7 +360,9 @@ "quickstartGuide": "quickstart guide.", "ollamaInstructions": "Ollama allows you to run models locally on your computer. For instructions on how to get started, see their", "noteComplexPrompts": "Note: Cline uses complex prompts and works best with Claude models. Less capable models may not work as expected.", - "seeQuickstart": "Ollama allows you to run models locally on your computer. For instructions on how to get started, see their quickstart guide." + "seeQuickstart": "Ollama allows you to run models locally on your computer. For instructions on how to get started, see their quickstart guide.", + "modelExample": "e.g. llama3.1", + "contextLengthExample": "e.g. 32768" }, "lmstudio": { "useCustomBaseUrl": "Use custom base URL", @@ -371,7 +374,8 @@ "together": { "name": "Together", "modelId": "Model ID", - "noteComplexPrompts": "Note: Cline uses complex prompts and works best with Claude models. Less capable models may not work as expected." + "noteComplexPrompts": "Note: Cline uses complex prompts and works best with Claude models. Less capable models may not work as expected.", + "modelIdPlaceholder": "Enter Model ID..." }, "xai": { "name": "X AI", @@ -459,7 +463,8 @@ "name": "Dify", "baseUrl": "Base URL", "noteModelSelection": "Note: The model selection is handled within your Dify application configuration.", - "platformDescription": "Dify is a platform that provides access to various AI models through a unified API. Configure your Dify instance URL and API key to get started." + "platformDescription": "Dify is a platform that provides access to various AI models through a unified API. Configure your Dify instance URL and API key to get started.", + "baseUrlPlaceholder": "Enter base URL..." }, "hicap": { "apiKey": "Hicap API Key" @@ -516,7 +521,10 @@ "selectModelFromDropdown": "Select a model from the dropdown above. The extension fetches available models from your Vercel AI Gateway configuration." }, "vscodeLm": { - "languageModel": "Language Model" + "languageModel": "Language Model", + "description": "Use models from your GitHub Copilot subscription. Install the", + "copilotExtension": "Copilot extension", + "enableClaudeModels": "and enable Claude models in Copilot settings to get started." }, "openAiCodex": { "signedIn": "Signed in to OpenAI Codex", @@ -548,7 +556,11 @@ "entrypointDescription": "Please select the appropriate API entrypoint based on your location. If you are in China, choose open.bigmodel.cn. Otherwise, choose api.z.ai." }, "lmStudio": { - "name": "LM Studio" + "name": "LM Studio", + "modelExample": "e.g. meta-llama-3.1-8b-instruct" + }, + "liteLlm": { + "defaultBaseUrl": "Default: http://localhost:4000" } }, "modelPicker": { @@ -559,6 +571,12 @@ "otherOptions": "other options", "noResultFound": "No result found for \"{{term}}\"" }, + "modelAutocomplete": { + "modelLabel": "Model", + "searchPlaceholder": "Search and select a model...", + "clearSearch": "Clear search", + "modelSuggestions": "Model suggestions" + }, "account": { "title": "Account", "personal": "Personal", @@ -649,4 +667,4 @@ "deleteSelectedCount": "Delete {{count}} Selected", "deleteAllHistory": "Delete All History" } -} +} \ No newline at end of file diff --git a/webview-ui/src/locales/zh-CN/common-misc.json b/webview-ui/src/locales/zh-CN/common-misc.json index 2c1041c8..09e1c9ad 100644 --- a/webview-ui/src/locales/zh-CN/common-misc.json +++ b/webview-ui/src/locales/zh-CN/common-misc.json @@ -124,7 +124,9 @@ "failedToAdd": "添加服务器失败", "connecting": "正在连接...", "addServer": "添加服务器", - "editConfiguration": "编辑配置" + "editConfiguration": "编辑配置", + "serverNamePlaceholder": "mcp-server", + "serverUrlPlaceholder": "https://example.com/mcp-server" }, "configureView": { "protocolIntro": "", @@ -206,7 +208,9 @@ "networkError": "加载预览时出现网络错误", "noTitle": "无标题", "noDescription": "无可用描述", - "somethingWrongLink": "显示此链接预览时出了点问题" + "somethingWrongLink": "显示此链接预览时出了点问题", + "failedToFetchOpenGraph": "获取 Open Graph 数据失败", + "unknownError": "发生未知错误" }, "timeout": { "30seconds": "30 秒", @@ -255,6 +259,13 @@ "requireGit": "工作树需要 Git 仓库。请初始化 Git 以使用工作树。", "retry": "重试", "noWorktrees": "未找到工作树。", + "errors": { + "failedToLoad": "加载工作树失败", + "failedToDelete": "删除工作树失败", + "failedToMerge": "合并工作树失败", + "failedToCreateTask": "为 Cline 创建任务失败", + "failedToCreate": "创建工作树失败" + }, "primary": "主要", "primaryTooltip": "原始工作树,.git 目录所在位置。", "current": "当前", @@ -373,7 +384,8 @@ "createFile": "创建文件", "newFile": "新文件", "skillNameInvalid": "技能名称只能包含字母、数字、短横线和下划线", - "extensionInvalid": "仅允许 .md、.txt 或无文件扩展名" + "extensionInvalid": "仅允许 .md、.txt 或无文件扩展名", + "failedToCreateSkill": "创建技能失败" }, "ruleRow": { "agentsTooltip": "当存在顶层 AGENTS.md 文件时,递归搜索工作区中所有 AGENTS.md 文件", @@ -387,7 +399,29 @@ "demo": { "helloWorld": "你好,世界!", "howdy": "你好!", - "cellData": "单元格数据" + "cellData": "单元格数据", + "customHeaderTitle": "自定义标题", + "anotherCustomTitle": "另一个自定义标题", + "titleIsCustom": "标题是自定义的", + "customTitle": "自定义标题", + "matchCase": "区分大小写", + "matchWholeWord": "全字匹配", + "useRegularExpression": "使用正则表达式", + "add": "添加", + "remove": "移除", + "badge": "徽章", + "checkbox": "复选框", + "option1": "选项 1", + "option2": "选项 2", + "link": "链接", + "tab1": "标签 1", + "tab2": "标签 2", + "panelView1": "面板视图 1", + "panelView2": "面板视图 2", + "radio1": "单选 1", + "radio2": "单选 2", + "tag": "标签", + "textAreaPlaceholder": "文本区域" }, "history": { "newest": "最新", diff --git a/webview-ui/src/locales/zh-CN/common.json b/webview-ui/src/locales/zh-CN/common.json index cd797019..7042d7ee 100644 --- a/webview-ui/src/locales/zh-CN/common.json +++ b/webview-ui/src/locales/zh-CN/common.json @@ -431,5 +431,13 @@ }, "historyPreview": { "noRecentTasks": "暂无最近任务" + }, + "providers": { + "baseten": { + "modelDescription": "Baseten 模型" + }, + "dify": { + "workflowDescription": "Dify 工作流 - 模型选择已在您的 Dify 应用中配置" + } } } diff --git a/webview-ui/src/locales/zh-CN/settings.json b/webview-ui/src/locales/zh-CN/settings.json index a3bae6ce..ebd38564 100644 --- a/webview-ui/src/locales/zh-CN/settings.json +++ b/webview-ui/src/locales/zh-CN/settings.json @@ -68,7 +68,8 @@ "actMode": "执行模式", "useDifferentModels": "为计划和执行模式使用不同的模型", "useDifferentModelsDescription": "在计划和执行模式之间切换时,将保留之前模式使用的 API 和模型。这在使用强推理模型为更便宜的编码模型制定计划时可能会有帮助。", - "modeSwitchPersistDescription": "在计划和执行模式之间切换时,将保留上一模式使用的 API 和模型。例如,这在使用强推理模型为更便宜的编码模型制定计划时很有帮助。" + "modeSwitchPersistDescription": "在计划和执行模式之间切换时,将保留上一模式使用的 API 和模型。例如,这在使用强推理模型为更便宜的编码模型制定计划时很有帮助。", + "thinkingBudgetLabel": "思考预算:{{value}} 个 token" }, "settingsSections": { "allowErrorReporting": "允许错误和使用数据报告", @@ -359,7 +360,9 @@ "quickstartGuide": "快速入门指南。", "ollamaInstructions": "Ollama 允许您在本地计算机上运行模型。有关如何入门的说明,请参阅其", "noteComplexPrompts": "注意:Cline 使用复杂的提示词,与 Claude 模型配合效果最佳。能力较弱的模型可能无法按预期工作。", - "seeQuickstart": "Ollama 允许您在本地计算机上运行模型。有关如何开始使用的说明,请参见他们的快速入门指南。" + "seeQuickstart": "Ollama 允许您在本地计算机上运行模型。有关如何开始使用的说明,请参见他们的快速入门指南。", + "modelExample": "例如 llama3.1", + "contextLengthExample": "例如 32768" }, "lmstudio": { "useCustomBaseUrl": "使用自定义基础 URL", @@ -371,7 +374,8 @@ "together": { "name": "Together", "modelId": "模型 ID", - "noteComplexPrompts": "注意:Cline 使用复杂的提示词,与 Claude 模型配合效果最佳。能力较弱的模型可能无法按预期工作。" + "noteComplexPrompts": "注意:Cline 使用复杂的提示词,与 Claude 模型配合效果最佳。能力较弱的模型可能无法按预期工作。", + "modelIdPlaceholder": "输入模型 ID..." }, "xai": { "name": "X AI", @@ -459,7 +463,8 @@ "name": "Dify", "baseUrl": "基础 URL", "noteModelSelection": "注意:模型选择在您的 Dify 应用配置中处理。", - "platformDescription": "Dify 是一个平台,通过统一的 API 提供对各种 AI 模型的访问。配置您的 Dify 实例 URL 和 API 密钥以开始使用。" + "platformDescription": "Dify 是一个平台,通过统一的 API 提供对各种 AI 模型的访问。配置您的 Dify 实例 URL 和 API 密钥以开始使用。", + "baseUrlPlaceholder": "输入基础 URL..." }, "hicap": { "apiKey": "Hicap API 密钥" @@ -516,7 +521,10 @@ "selectModelFromDropdown": "从上面的下拉列表中选择一个模型。扩展从您的 Vercel AI Gateway 配置中获取可用模型。" }, "vscodeLm": { - "languageModel": "语言模型" + "languageModel": "语言模型", + "description": "使用你的 GitHub Copilot 订阅中的模型。安装", + "copilotExtension": "Copilot 扩展", + "enableClaudeModels": "并在 Copilot 设置中启用 Claude 模型即可开始使用。" }, "openAiCodex": { "signedIn": "已登录 OpenAI Codex", @@ -548,7 +556,11 @@ "entrypointDescription": "请根据您所在地区选择合适的 API 入口。如果您在中国大陆,请选择 open.bigmodel.cn。否则,请选择 api.z.ai。" }, "lmStudio": { - "name": "LM Studio" + "name": "LM Studio", + "modelExample": "例如 meta-llama-3.1-8b-instruct" + }, + "liteLlm": { + "defaultBaseUrl": "默认:http://localhost:4000" } }, "modelPicker": { @@ -559,6 +571,12 @@ "otherOptions": "其他选项", "noResultFound": "未找到 \"{{term}}\" 的结果" }, + "modelAutocomplete": { + "modelLabel": "模型", + "searchPlaceholder": "搜索并选择模型...", + "clearSearch": "清除搜索", + "modelSuggestions": "模型建议" + }, "account": { "title": "账户", "personal": "个人", @@ -649,4 +667,4 @@ "deleteSelectedCount": "删除 {{count}} 已选中", "deleteAllHistory": "删除所有历史记录" } -} +} \ No newline at end of file