fix: improve mode toggle robustness and add i18n support
- Make mode detection more robust (handle ::1, 0.0.0.0) - Add getProxyPort() to parse port from ANTHROPIC_BASE_URL dynamically - Add i18n translation keys for mode toggle in all 5 languages - Update settings.html to use translation keys and dynamic port Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -364,4 +364,14 @@ window.translations.en = {
|
||||
mustBeAtMost: "{fieldName} must be at most {max}",
|
||||
cannotBeEmpty: "{fieldName} cannot be empty",
|
||||
mustBeTrueOrFalse: "Value must be true or false",
|
||||
// Mode Toggle (Proxy/Paid)
|
||||
connectionMode: "Connection Mode",
|
||||
proxyMode: "Proxy Mode",
|
||||
paidMode: "Paid Mode",
|
||||
usingLocalProxy: "Using local proxy server (localhost:{port})",
|
||||
usingOfficialApi: "Using official Anthropic API (requires subscription)",
|
||||
paidModeTitle: "Claude CLI is using the official Anthropic API",
|
||||
paidModeDesc: "All proxy configuration has been removed. Claude CLI uses your Anthropic subscription directly.",
|
||||
paidModeHint: "Switch to Proxy mode to configure model routing and presets.",
|
||||
modeToggleFailed: "Failed to switch mode",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user