Skip to content

Commit 7585ad9

Browse files
committed
fix: resolve localization issues in ContextManagementSettings
- Replace hardcoded 'Unlimited' text with proper translation key - Remove unused 'unlimitedDescription' translation keys from all 18 language files - Ensures consistent localization across all supported languages
1 parent 224924a commit 7585ad9

File tree

19 files changed

+19
-37
lines changed

19 files changed

+19
-37
lines changed

webview-ui/src/components/settings/ContextManagementSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export const ContextManagementSettings = ({
286286
<span className="w-20 text-sm font-medium">
287287
{(maxDiagnosticMessages !== undefined && maxDiagnosticMessages <= 0) ||
288288
maxDiagnosticMessages === 100
289-
? t("settings:contextManagement.diagnostics.maxMessages.unlimitedLabel") || "Unlimited"
289+
? t("settings:contextManagement.diagnostics.maxMessages.unlimitedLabel")
290290
: (maxDiagnosticMessages ?? 50)}
291291
</span>
292292
<Button

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@
475475
"label": "Màxim de missatges de diagnòstic",
476476
"description": "Nombre màxim de missatges de diagnòstic a incloure per fitxer. Aquest límit s'aplica tant a la inclusió automàtica (quan la casella està activada) com a les mencions manuals de @problems. Valors més alts proporcionen més context però augmenten l'ús de tokens.",
477477
"resetTooltip": "Restablir al valor per defecte (50)",
478-
"unlimitedLabel": "Il·limitat",
479-
"unlimitedDescription": "S'inclouran tots els missatges de diagnòstic. Utilitzeu amb precaució ja que això pot augmentar significativament l'ús de tokens."
478+
"unlimitedLabel": "Il·limitat"
480479
}
481480
},
482481
"condensingThreshold": {

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@
475475
"label": "Maximale Anzahl von Diagnosenachrichten",
476476
"description": "Maximale Anzahl von Diagnosenachrichten, die pro Datei eingeschlossen werden. Dieses Limit gilt sowohl für die automatische Einbeziehung (wenn das Kontrollkästchen aktiviert ist) als auch für manuelle @problems-Erwähnungen. Höhere Werte bieten mehr Kontext, erhöhen aber den Token-Verbrauch.",
477477
"resetTooltip": "Auf Standardwert zurücksetzen (50)",
478-
"unlimitedLabel": "Unbegrenzt",
479-
"unlimitedDescription": "Alle Diagnosenachrichten werden einbezogen. Mit Vorsicht verwenden, da dies den Token-Verbrauch erheblich erhöhen kann."
478+
"unlimitedLabel": "Unbegrenzt"
480479
}
481480
},
482481
"condensingThreshold": {

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@
475475
"label": "Maximum diagnostic messages",
476476
"description": "Maximum number of diagnostic messages to include per file. This limit applies to both automatic inclusion (when checkbox is enabled) and manual @problems mentions. Higher values provide more context but increase token usage.",
477477
"resetTooltip": "Reset to default value (50)",
478-
"unlimitedLabel": "Unlimited",
479-
"unlimitedDescription": "All diagnostic messages will be included. Use with caution as this may significantly increase token usage."
478+
"unlimitedLabel": "Unlimited"
480479
}
481480
},
482481
"condensingThreshold": {

webview-ui/src/i18n/locales/es/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@
475475
"label": "Máximo de mensajes de diagnóstico",
476476
"description": "Número máximo de mensajes de diagnóstico a incluir por archivo. Este límite se aplica tanto a la inclusión automática (cuando la casilla está habilitada) como a las menciones manuales de @problems. Valores más altos proporcionan más contexto pero aumentan el uso de tokens.",
477477
"resetTooltip": "Restablecer al valor predeterminado (50)",
478-
"unlimitedLabel": "Ilimitado",
479-
"unlimitedDescription": "Se incluirán todos los mensajes de diagnóstico. Úselo con precaución ya que esto puede aumentar significativamente el uso de tokens."
478+
"unlimitedLabel": "Ilimitado"
480479
}
481480
},
482481
"condensingThreshold": {

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@
475475
"label": "Nombre maximum de messages de diagnostic",
476476
"description": "Nombre maximum de messages de diagnostic à inclure par fichier. Cette limite s'applique à la fois à l'inclusion automatique (lorsque la case est cochée) et aux mentions manuelles @problems. Des valeurs plus élevées fournissent plus de contexte mais augmentent l'utilisation des jetons.",
477477
"resetTooltip": "Réinitialiser à la valeur par défaut (50)",
478-
"unlimitedLabel": "Illimité",
479-
"unlimitedDescription": "Tous les messages de diagnostic seront inclus. Utilisez avec prudence car cela peut augmenter considérablement l'utilisation des jetons."
478+
"unlimitedLabel": "Illimité"
480479
}
481480
},
482481
"condensingThreshold": {

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,7 @@
476476
"description": "प्रति फ़ाइल शामिल किए जाने वाले नैदानिक ​​संदेशों की अधिकतम संख्या। यह सीमा स्वचालित समावेशन (जब चेकबॉक्स सक्षम है) और मैन्युअल @problems उल्लेख दोनों पर लागू होती है। उच्च मान अधिक संदर्भ प्रदान करते हैं लेकिन टोकन उपयोग बढ़ाते हैं।",
477477
"resetTooltip": "डिफ़ॉल्ट मान पर रीसेट करें (50)",
478478
"unlimited": "असीमित डायग्नोस्टिक संदेश",
479-
"unlimitedLabel": "असीमित",
480-
"unlimitedDescription": "सभी डायग्नोस्टिक संदेश शामिल किए जाएंगे। सावधानी से उपयोग करें क्योंकि यह टोकन उपयोग को काफी बढ़ा सकता है।"
479+
"unlimitedLabel": "असीमित"
481480
}
482481
},
483482
"condensingThreshold": {

webview-ui/src/i18n/locales/id/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,7 @@
458458
"description": "Jumlah maksimum pesan diagnostik yang akan disertakan per file. Batas ini berlaku untuk penyertaan otomatis (ketika checkbox diaktifkan) dan penyebutan manual @problems. Nilai yang lebih tinggi memberikan lebih banyak konteks tetapi meningkatkan penggunaan token.",
459459
"resetTooltip": "Reset ke nilai default (50)",
460460
"unlimited": "Pesan diagnostik tidak terbatas",
461-
"unlimitedLabel": "Tak terbatas",
462-
"unlimitedDescription": "Semua pesan diagnostik akan disertakan. Gunakan dengan hati-hati karena ini dapat meningkatkan penggunaan token secara signifikan."
461+
"unlimitedLabel": "Tak terbatas"
463462
}
464463
},
465464
"condensingThreshold": {

webview-ui/src/i18n/locales/it/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,7 @@
476476
"description": "Numero massimo di messaggi diagnostici da includere per file. Questo limite si applica sia all'inclusione automatica (quando la casella è abilitata) che alle menzioni manuali di @problems. Valori più alti forniscono più contesto ma aumentano l'utilizzo dei token.",
477477
"resetTooltip": "Ripristina al valore predefinito (50)",
478478
"unlimited": "Messaggi diagnostici illimitati",
479-
"unlimitedLabel": "Illimitato",
480-
"unlimitedDescription": "Verranno inclusi tutti i messaggi diagnostici. Usare con cautela poiché questo può aumentare significativamente l'utilizzo dei token."
479+
"unlimitedLabel": "Illimitato"
481480
}
482481
},
483482
"condensingThreshold": {

webview-ui/src/i18n/locales/ja/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,7 @@
476476
"description": "ファイルごとに含める診断メッセージの最大数。この制限は、自動インクルード(チェックボックスが有効な場合)と手動の@problemsメンションの両方に適用されます。値を高くするとより多くのコンテキストが提供されますが、トークンの使用量が増加します。",
477477
"resetTooltip": "デフォルト値(50)にリセット",
478478
"unlimited": "無制限の診断メッセージ",
479-
"unlimitedLabel": "無制限",
480-
"unlimitedDescription": "すべての診断メッセージが含まれます。トークンの使用量が大幅に増加する可能性があるため、注意して使用してください。"
479+
"unlimitedLabel": "無制限"
481480
}
482481
},
483482
"condensingThreshold": {

0 commit comments

Comments
 (0)