From f3a4d6ce2a18f95ed84ec07f2d565d7fbb493075 Mon Sep 17 00:00:00 2001 From: HybridTalentComputing <1316645276@qq.com> Date: Mon, 1 Jun 2026 19:44:22 +0800 Subject: [PATCH] refactor: reapply provider and settings localization on v3.86.1 --- .../src/components/account/AccountView.tsx | 16 ++++-- .../src/components/common/ViewHeader.tsx | 13 ++--- .../src/components/history/HistoryView.tsx | 24 ++++----- .../components/onboarding/OnboardingView.tsx | 2 +- .../components/settings/VercelModelPicker.tsx | 4 +- .../settings/providers/AnthropicProvider.tsx | 2 +- .../settings/providers/AskSageProvider.tsx | 4 +- .../settings/providers/BedrockProvider.tsx | 30 +++++------ .../settings/providers/ClaudeCodeProvider.tsx | 8 +-- .../settings/providers/DifyProvider.tsx | 2 +- .../settings/providers/GeminiProvider.tsx | 2 +- .../settings/providers/HicapProvider.tsx | 2 +- .../providers/HuggingFaceProvider.tsx | 4 +- .../settings/providers/LMStudioProvider.tsx | 21 ++++---- .../settings/providers/LiteLlmProvider.tsx | 14 ++---- .../settings/providers/MiniMaxProvider.tsx | 2 +- .../settings/providers/MoonshotProvider.tsx | 2 +- .../providers/NousresearchProvider.tsx | 4 +- .../settings/providers/OcaProvider.tsx | 36 +++++++------ .../settings/providers/OllamaProvider.tsx | 21 +++----- .../settings/providers/OpenAICompatible.tsx | 16 +++--- .../providers/OpenAiCodexProvider.tsx | 4 +- .../settings/providers/OpenRouterProvider.tsx | 4 +- .../settings/providers/QwenCodeProvider.tsx | 21 +++----- .../settings/providers/QwenProvider.tsx | 2 +- .../settings/providers/SapAiCoreProvider.tsx | 50 +++++++++---------- .../settings/providers/VSCodeLmProvider.tsx | 2 +- .../providers/VercelAIGatewayProvider.tsx | 4 +- .../settings/providers/VertexProvider.tsx | 4 +- .../settings/providers/XaiProvider.tsx | 10 ++-- .../settings/providers/ZAiProvider.tsx | 4 +- .../sections/ApiConfigurationSection.tsx | 6 +-- .../sections/BrowserSettingsSection.tsx | 4 +- .../sections/FeatureSettingsSection.tsx | 2 +- .../worktrees/CreateWorktreeModal.tsx | 4 +- 35 files changed, 166 insertions(+), 184 deletions(-) diff --git a/webview-ui/src/components/account/AccountView.tsx b/webview-ui/src/components/account/AccountView.tsx index 1faf862e..c940211c 100644 --- a/webview-ui/src/components/account/AccountView.tsx +++ b/webview-ui/src/components/account/AccountView.tsx @@ -176,7 +176,13 @@ export const ClineAccountView = ({ clineUser, userOrganizations, activeOrganizat setIsLoading(false) } }, - [isLoading, uid, fetchUserCredit, loadCachedData], + [ + isLoading, + uid, + fetchUserCredit, + loadCachedData, // Cache the updated data + cacheCurrentData, + ], ) const handleOrganizationChange = useCallback( @@ -241,7 +247,7 @@ export const ClineAccountView = ({ clineUser, userOrganizations, activeOrganizat initialFetchCompleteRef.current = true } initialFetch() - }, []) + }, [dropdownValue, fetchCreditBalance]) useEffect(() => { // Handle organization changes with 500ms debounce @@ -310,7 +316,7 @@ export const ClineAccountView = ({ clineUser, userOrganizations, activeOrganizat
lms server start to use it with this extension.{" "}
- Please ask your IT administrator to set up Oracle Code Assist as a model provider. Oracle Employees,
- please see the{" "}
+ {t("providers.oca.itAdminMessage")}
+ {t("providers.oca.pleaseSeeThe")}{" "}
- Unable to fetch models from Ollama server. Please ensure Ollama is running and accessible, or enter the model - ID manually above. -
+{t("providers.ollama.unableToFetch")}
)}
- Client Id is set. To change it, please re-enter the value. -
+{t("providers.sapaicore.clientIdSet")}
)}- Client Secret is set. To change it, please re-enter the value. -
+{t("providers.sapaicore.clientSecretSet")}
)}
- These credentials are stored locally and only used to make API requests from this extension.
+ {t("providers.sapaicore.credentialsStoredLocally")}
- When enabled, provides access to all available models without requiring individual deployments.
+ {t("providers.sapaicore.orchestrationDescription")}
- When disabled, provides access only to deployed models in your AI Core service instance.
+ {t("providers.sapaicore.orchestrationDisabled")}
Switching between Plan and Act mode will persist the API and model used in the previous mode. This may be
diff --git a/webview-ui/src/components/settings/sections/BrowserSettingsSection.tsx b/webview-ui/src/components/settings/sections/BrowserSettingsSection.tsx
index a2916f48..241d8a6e 100644
--- a/webview-ui/src/components/settings/sections/BrowserSettingsSection.tsx
+++ b/webview-ui/src/components/settings/sections/BrowserSettingsSection.tsx
@@ -331,7 +331,7 @@ export const BrowserSettingsSection: React.FC