diff --git a/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx b/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx index e4c3cfc92d..235a54afd3 100644 --- a/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx +++ b/web/app/components/header/account-setting/sandbox-provider-page/provider-card.tsx @@ -23,6 +23,13 @@ const PROVIDER_ICONS: Record = { local: '/sandbox-providers/local.svg', } +const PROVIDER_DESCRIPTION_KEYS = { + e2b: 'sandboxProvider.e2b.description', + daytona: 'sandboxProvider.daytona.description', + docker: 'sandboxProvider.docker.description', + local: 'sandboxProvider.local.description', +} as const + const ProviderIcon = ({ providerType }: { providerType: string }) => { const iconSrc = PROVIDER_ICONS[providerType] || PROVIDER_ICONS.e2b @@ -72,7 +79,7 @@ const ProviderCard = ({ )}
- {provider.description} + {t(PROVIDER_DESCRIPTION_KEYS[provider.provider_type as keyof typeof PROVIDER_DESCRIPTION_KEYS] ?? 'sandboxProvider.e2b.description', { ns: 'common' })}