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
parent bc65ee10c0
commit e94b323e6c
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}`}
/>
)