fix: type & i18n & ut

This commit is contained in:
Mingholy 2026-02-10 20:58:15 +08:00 committed by mingholy.lmh
parent b9dd080bd1
commit 6626745197
10 changed files with 535 additions and 4 deletions

View file

@ -203,6 +203,13 @@ export function AuthDialog(): React.JSX.Element {
}}
/>
</Box>
<Box marginTop={1} paddingLeft={2}>
<Text color={Colors.Gray}>
{currentSelectedAuthType === AuthType.QWEN_OAUTH
? t('Login with QwenChat account to use daily free quota.')
: t('Use coding plan credentials or your own api-keys/providers.')}
</Text>
</Box>
</>
);
@ -225,6 +232,15 @@ export function AuthDialog(): React.JSX.Element {
}}
/>
</Box>
<Box marginTop={1} paddingLeft={2}>
<Text color={Colors.Gray}>
{apiKeySubItems[apiKeySubModeIndex]?.value === 'coding-plan'
? t("Paste your api key of Bailian Coding Plan and you're all set!")
: t(
'More instructions about configuring `modelProviders` manually.',
)}
</Text>
</Box>
<Box marginTop={1}>
<Text color={Colors.Gray}>{t('(Press Escape to go back)')}</Text>
</Box>