mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: address PR review comments
- Fix French translation: 'automatically' -> 'automatiquement' - Fix Hindi translation: mixed scripts in 'कॉन्फ़िgerेशन' -> 'कॉन्फ़िगरेशन' - Fix typo: 'CodeAccordian' -> 'CodeAccordion' in test file - Remove redundant state variables in AutoApproveMenu.tsx - Fix translation key namespace: use settings:autoApprove.selectOptionsFirst - Add missing translation key to all language files
This commit is contained in:
parent
1852ad1dd6
commit
e734ec7c87
22 changed files with 42 additions and 29 deletions
|
|
@ -15,7 +15,6 @@ interface AutoApproveMenuProps {
|
|||
|
||||
const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
|
||||
const [isExpanded, setIsExpanded] = useState(false)
|
||||
const [isMenuExpanded, setIsMenuExpanded] = useState(false)
|
||||
|
||||
const {
|
||||
autoApprovalEnabled,
|
||||
|
|
@ -151,17 +150,13 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
|
|||
)
|
||||
|
||||
const toggleExpanded = useCallback(() => {
|
||||
setIsExpanded((prev) => {
|
||||
const newExpanded = !prev
|
||||
setIsMenuExpanded(newExpanded)
|
||||
return newExpanded
|
||||
})
|
||||
setIsExpanded((prev) => !prev)
|
||||
}, [])
|
||||
|
||||
// Disable main checkbox while menu is open or no options selected
|
||||
const isCheckboxDisabled = useMemo(() => {
|
||||
return !hasEnabledOptions || isMenuExpanded
|
||||
}, [hasEnabledOptions, isMenuExpanded])
|
||||
return !hasEnabledOptions || isExpanded
|
||||
}, [hasEnabledOptions, isExpanded])
|
||||
|
||||
const enabledActionsList = Object.entries(toggles)
|
||||
.filter(([_key, value]) => !!value)
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ vi.mock("@src/components/common/CodeBlock", () => ({
|
|||
CODE_BLOCK_BG_COLOR: "rgb(30, 30, 30)",
|
||||
}))
|
||||
|
||||
vi.mock("@src/components/common/CodeAccordian", () => ({
|
||||
vi.mock("@src/components/common/CodeAccordion", () => ({
|
||||
default: () => null,
|
||||
}))
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ export const AutoApproveSettings = ({
|
|||
<div {...props}>
|
||||
<SectionHeader description={t("settings:autoApprove.description")}>
|
||||
<div className="flex items-center gap-2">
|
||||
<StandardTooltip content={!hasEnabledOptions ? t("chat:autoApprove.selectOptionsFirst") : ""}>
|
||||
<StandardTooltip content={!hasEnabledOptions ? t("settings:autoApprove.selectOptionsFirst") : ""}>
|
||||
<VSCodeCheckbox
|
||||
checked={effectiveAutoApprovalEnabled}
|
||||
disabled={!hasEnabledOptions}
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Màximes Sol·licituds",
|
||||
"description": "Fes aquesta quantitat de sol·licituds API automàticament abans de demanar aprovació per continuar amb la tasca.",
|
||||
"unlimited": "Il·limitat"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Seleccioneu almenys una opció a continuació per activar l'aprovació automàtica"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentació de {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Maximale Anfragen",
|
||||
"description": "Automatisch so viele API-Anfragen stellen, bevor du um die Erlaubnis gebeten wirst, mit der Aufgabe fortzufahren.",
|
||||
"unlimited": "Unbegrenzt"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Wähle mindestens eine Option unten aus, um die automatische Genehmigung zu aktivieren"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}}-Dokumentation",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"unlimited": "Unlimited"
|
||||
},
|
||||
"toggleAriaLabel": "Toggle auto-approval",
|
||||
"disabledAriaLabel": "Auto-approval disabled - select options first"
|
||||
"disabledAriaLabel": "Auto-approval disabled - select options first",
|
||||
"selectOptionsFirst": "Select at least one option below to enable auto-approval"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} documentation",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Solicitudes máximas",
|
||||
"description": "Realizar automáticamente esta cantidad de solicitudes a la API antes de pedir aprobación para continuar con la tarea.",
|
||||
"unlimited": "Ilimitado"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Selecciona al menos una opción a continuación para habilitar la aprobación automática"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentación de {{provider}}",
|
||||
|
|
|
|||
|
|
@ -122,9 +122,10 @@
|
|||
"resetToDefault": "Réinitialiser par défaut"
|
||||
},
|
||||
"autoApprove": {
|
||||
"description": "Permettre à Roo d'effectuer automatically des opérations sans requérir d'approbation. Activez ces paramètres uniquement si vous faites entièrement confiance à l'IA et que vous comprenez les risques de sécurité associés.",
|
||||
"description": "Permettre à Roo d'effectuer automatiquement des opérations sans requérir d'approbation. Activez ces paramètres uniquement si vous faites entièrement confiance à l'IA et que vous comprenez les risques de sécurité associés.",
|
||||
"toggleAriaLabel": "Activer/désactiver l'approbation automatique",
|
||||
"disabledAriaLabel": "Approbation automatique désactivée - sélectionnez d'abord les options",
|
||||
"selectOptionsFirst": "Sélectionnez au moins une option ci-dessous pour activer l'approbation automatique",
|
||||
"readOnly": {
|
||||
"label": "Lecture",
|
||||
"description": "Lorsque cette option est activée, Roo affichera automatiquement le contenu des répertoires et lira les fichiers sans que vous ayez à cliquer sur le bouton Approuver.",
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@
|
|||
"autoApprove": {
|
||||
"title": "स्वत:-स्वीकृति:",
|
||||
"none": "कोई नहीं",
|
||||
"description": "स्वत:-स्वीकृति Roo Code को अनुमति मांगे बिना क्रियाएँ करने की अनुमति देती है। केवल उन क्रियाओं के लिए सक्षम करें जिन पर आप पूरी तरह से विश्वास करते हैं। अधिक विस्तृत कॉन्फ़िgerेशन <settingsLink>सेटिंग्स</settingsLink> में उपलब्ध है।",
|
||||
"description": "स्वत:-स्वीकृति Roo Code को अनुमति मांगे बिना क्रियाएँ करने की अनुमति देती है। केवल उन क्रियाओं के लिए सक्षम करें जिन पर आप पूरी तरह से विश्वास करते हैं। अधिक विस्तृत कॉन्फ़िगरेशन <settingsLink>सेटिंग्स</settingsLink> में उपलब्ध है।",
|
||||
"selectOptionsFirst": "स्वतः-अनुमोदन सक्षम करने के लिए नीचे दिए گئے विकल्पों में से कम से कम एक का चयन करें",
|
||||
"toggleAriaLabel": "स्वतः-अनुमोदन टॉगल करें",
|
||||
"disabledAriaLabel": "स्वतः-अनुमोदन अक्षम - पहले विकल्प चुनें"
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "अधिकतम अनुरोध",
|
||||
"description": "कार्य जारी रखने के लिए अनुमति मांगने से पहले स्वचालित रूप से इतने API अनुरोध करें।",
|
||||
"unlimited": "असीमित"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "स्वतः-अनुमोदन सक्षम करने के लिए नीचे से कम से कम एक विकल्प चुनें"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} दस्तावेज़ीकरण",
|
||||
|
|
|
|||
|
|
@ -196,7 +196,8 @@
|
|||
"title": "Permintaan Maks",
|
||||
"description": "Secara otomatis membuat sejumlah permintaan API ini sebelum meminta persetujuan untuk melanjutkan tugas.",
|
||||
"unlimited": "Tidak terbatas"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Pilih setidaknya satu opsi di bawah ini untuk mengaktifkan persetujuan otomatis"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Dokumentasi {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Richieste massime",
|
||||
"description": "Esegui automaticamente questo numero di richieste API prima di chiedere l'approvazione per continuare con l'attività.",
|
||||
"unlimited": "Illimitato"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Seleziona almeno un'opzione qui sotto per abilitare l'approvazione automatica"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentazione {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "最大リクエスト数",
|
||||
"description": "タスクを続行するための承認を求める前に、自動的にこの数のAPIリクエストを行います。",
|
||||
"unlimited": "無制限"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "自動承認を有効にするには、以下のオプションを少なくとも1つ選択してください"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}}のドキュメント",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "최대 요청 수",
|
||||
"description": "작업을 계속하기 위한 승인을 요청하기 전에 자동으로 이 수의 API 요청을 수행합니다.",
|
||||
"unlimited": "무제한"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "자동 승인을 활성화하려면 아래에서 하나 이상의 옵션을 선택하세요"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} 문서",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Maximale verzoeken",
|
||||
"description": "Voer automatisch dit aantal API-verzoeken uit voordat om goedkeuring wordt gevraagd om door te gaan met de taak.",
|
||||
"unlimited": "Onbeperkt"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Selecteer ten minste één optie hieronder om automatische goedkeuring in te schakelen"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} documentatie",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Maksymalna liczba żądań",
|
||||
"description": "Automatycznie wykonaj tyle żądań API przed poproszeniem o zgodę na kontynuowanie zadania.",
|
||||
"unlimited": "Bez limitu"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Wybierz co najmniej jedną opcję poniżej, aby włączyć automatyczne zatwierdzanie"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Dokumentacja {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Máximo de Solicitações",
|
||||
"description": "Fazer automaticamente este número de requisições à API antes de pedir aprovação para continuar com a tarefa.",
|
||||
"unlimited": "Ilimitado"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Selecione pelo menos uma opção abaixo para habilitar a aprovação automática"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentação do {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Максимум запросов",
|
||||
"description": "Автоматически выполнять это количество API-запросов перед запросом разрешения на продолжение задачи.",
|
||||
"unlimited": "Без ограничений"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Выберите хотя бы один вариант ниже, чтобы включить автоодобрение"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Документация {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Maksimum İstek",
|
||||
"description": "Göreve devam etmek için onay istemeden önce bu sayıda API isteği otomatik olarak yap.",
|
||||
"unlimited": "Sınırsız"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Otomatik onayı etkinleştirmek için aşağıdan en az bir seçenek seçin"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} Dokümantasyonu",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "Số lượng yêu cầu tối đa",
|
||||
"description": "Tự động thực hiện số lượng API request này trước khi yêu cầu phê duyệt để tiếp tục với nhiệm vụ.",
|
||||
"unlimited": "Không giới hạn"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "Chọn ít nhất một tùy chọn bên dưới để bật tự động phê duyệt"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Tài liệu {{provider}}",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "最大请求数",
|
||||
"description": "在请求批准以继续执行任务之前,自动发出此数量的 API 请求。",
|
||||
"unlimited": "无限制"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "请至少选择以下一个选项以启用自动批准"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} 文档",
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@
|
|||
"title": "最大請求數",
|
||||
"description": "在請求批准以繼續執行工作之前,自動發出此數量的 API 請求。",
|
||||
"unlimited": "無限制"
|
||||
}
|
||||
},
|
||||
"selectOptionsFirst": "請至少選擇以下一個選項以啟用自動核准"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} 文件",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue