mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
add i18n
This commit is contained in:
parent
597ce85335
commit
a19f1b1ab3
8 changed files with 74 additions and 11 deletions
|
|
@ -633,6 +633,9 @@ export const MCPManagementDialog: React.FC<MCPManagementDialogProps> = ({
|
|||
case MCP_MANAGEMENT_STEPS.TOOL_DETAIL:
|
||||
footerText = t('Esc to back');
|
||||
break;
|
||||
case MCP_MANAGEMENT_STEPS.AUTHENTICATE:
|
||||
footerText = t('Press Enter to start authentication, Esc to go back');
|
||||
break;
|
||||
default:
|
||||
footerText = t('Esc to close');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,21 +154,11 @@ export const AuthenticateStep: React.FC<AuthenticateStepProps> = ({
|
|||
|
||||
{/* Action hints */}
|
||||
<Box>
|
||||
{authState === 'idle' && (
|
||||
<Text color={theme.text.secondary}>
|
||||
{t('Press Enter to start authentication, Esc to go back')}
|
||||
</Text>
|
||||
)}
|
||||
{authState === 'authenticating' && (
|
||||
<Text color={theme.text.secondary}>
|
||||
{t('Authenticating... Please complete the login in your browser.')}
|
||||
</Text>
|
||||
)}
|
||||
{(authState === 'success' || authState === 'error') && (
|
||||
<Text color={theme.text.secondary}>
|
||||
{t('Press Enter or Esc to go back')}
|
||||
</Text>
|
||||
)}
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue