fix: use English as the default i18n language (#2663)

This commit is contained in:
Yeuoly 2024-03-03 12:35:28 +08:00 • committed by GitHub
commit e94b323e6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 19 deletions

View file

@ -26,7 +26,7 @@ const ModelIcon: FC<ModelIconProps> = ({
return (
<img
alt='model-icon'
src={`${provider.icon_small[language]}?_token=${localStorage.getItem('console_token')}`}
src={`${provider.icon_small[language] || provider.icon_small.en_US}?_token=${localStorage.getItem('console_token')}`}
className={`w-4 h-4 ${className}`}
/>
)