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:
@@ -355,4 +355,14 @@ window.translations.tr = {
|
||||
strategyUpdated: "Strateji şu şekilde güncellendi: {strategy}",
|
||||
failedToUpdateStrategy: "Strateji güncellenemedi",
|
||||
invalidStrategy: "Geçersiz strateji seçildi",
|
||||
// Mode Toggle (Proxy/Paid)
|
||||
connectionMode: "Bağlantı Modu",
|
||||
proxyMode: "Proxy Modu",
|
||||
paidMode: "Ücretli Mod",
|
||||
usingLocalProxy: "Yerel proxy sunucusu kullanılıyor (localhost:{port})",
|
||||
usingOfficialApi: "Resmi Anthropic API kullanılıyor (abonelik gerektirir)",
|
||||
paidModeTitle: "Claude CLI resmi Anthropic API kullanıyor",
|
||||
paidModeDesc: "Tüm proxy yapılandırması kaldırıldı. Claude CLI doğrudan Anthropic aboneliğinizi kullanır.",
|
||||
paidModeHint: "Model yönlendirme ve ön ayarları yapılandırmak için Proxy moduna geçin.",
|
||||
modeToggleFailed: "Mod değiştirilemedi",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user