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

@ -16,7 +16,7 @@ const ProviderIcon: FC<ProviderIconProps> = ({
return (
<img
alt='provider-icon'
src={`${provider.icon_large[language]}?_token=${localStorage.getItem('console_token')}`}
src={`${provider.icon_large[language] || provider.icon_large.en_US}?_token=${localStorage.getItem('console_token')}`}
className={`w-auto h-6 ${className}`}
/>
)