@@ -5,6 +5,7 @@ import { useExtensionState } from "../../context/ExtensionStateContext"
55import { AutoApprovalSettings } from "../../../../src/shared/AutoApprovalSettings"
66import { vscode } from "../../utils/vscode"
77import { getAsVar , VSC_FOREGROUND , VSC_TITLEBAR_INACTIVE_FOREGROUND , VSC_DESCRIPTION_FOREGROUND } from "../../utils/vscStyles"
8+ import { useTranslation } from "react-i18next"
89
910interface AutoApproveMenuProps {
1011 style ?: React . CSSProperties
@@ -50,6 +51,7 @@ const ACTION_METADATA: {
5051]
5152
5253const AutoApproveMenu = ( { style } : AutoApproveMenuProps ) => {
54+ const { t } = useTranslation ( "translation" , { keyPrefix : "autoApproveMenu" } )
5355 const { autoApprovalSettings } = useExtensionState ( )
5456 const [ isExpanded , setIsExpanded ] = useState ( false )
5557 const [ isHoveringCollapsibleSection , setIsHoveringCollapsibleSection ] = useState ( false )
@@ -190,15 +192,15 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
190192 color : getAsVar ( VSC_FOREGROUND ) ,
191193 whiteSpace : "nowrap" ,
192194 } } >
193- Auto-approve:
195+ { t ( "autoApprove" ) }
194196 </ span >
195197 < span
196198 style = { {
197199 whiteSpace : "nowrap" ,
198200 overflow : "hidden" ,
199201 textOverflow : "ellipsis" ,
200202 } } >
201- { enabledActions . length === 0 ? "None" : enabledActionsList }
203+ { enabledActions . length === 0 ? t ( "none" ) : enabledActionsList }
202204 </ span >
203205 < span
204206 className = { `codicon codicon-chevron-${ isExpanded ? "down" : "right" } ` }
@@ -217,8 +219,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
217219 color : getAsVar ( VSC_DESCRIPTION_FOREGROUND ) ,
218220 fontSize : "12px" ,
219221 } } >
220- Auto-approve allows Cline to perform the following actions without asking for permission. Please use with
221- caution and only enable if you understand the risks.
222+ { t ( "autoApproveDescription" ) }
222223 </ div >
223224 { ACTION_METADATA . map ( ( action ) => (
224225 < div key = { action . id } style = { { margin : "6px 0" } } >
@@ -285,7 +286,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
285286 fontSize : "12px" ,
286287 marginBottom : "10px" ,
287288 } } >
288- Cline will automatically make this many API requests before asking for approval to proceed with the task.
289+ { t ( "autoApproveMaxRequestsDescription" ) }
289290 </ div >
290291 < div style = { { margin : "6px 0" } } >
291292 < VSCodeCheckbox
@@ -294,15 +295,15 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
294295 const checked = ( e . target as HTMLInputElement ) . checked
295296 updateNotifications ( checked )
296297 } } >
297- Enable Notifications
298+ { t ( "enableNotifications" ) }
298299 </ VSCodeCheckbox >
299300 < div
300301 style = { {
301302 marginLeft : "28px" ,
302303 color : getAsVar ( VSC_DESCRIPTION_FOREGROUND ) ,
303304 fontSize : "12px" ,
304305 } } >
305- Receive system notifications when Cline requires approval to proceed or when a task is completed.
306+ { t ( "enableNotificationsDescription" ) }
306307 </ div >
307308 </ div >
308309 </ div >
0 commit comments