diff --git a/web/default/src/components/language-switcher.tsx b/web/default/src/components/language-switcher.tsx index b289cddc9..0a3a7f2e8 100644 --- a/web/default/src/components/language-switcher.tsx +++ b/web/default/src/components/language-switcher.tsx @@ -34,7 +34,7 @@ import { DropdownMenuTrigger, } from '@/components/ui/dropdown-menu' -export function LanguageSwitcher() { +export function LanguageSwitcher({ className }: { className?: string }) { const { i18n, t } = useTranslation() const user = useAuthStore((s) => s.auth.user) const currentLanguage = normalizeInterfaceLanguage(i18n.language) @@ -56,7 +56,7 @@ export function LanguageSwitcher() { return ( } + render={ - ) : ( - <> + {/* CTA */} +
+ {props.isAuthenticated ? ( - - - )} + ) : ( + <> + + + + )} +
- {/* Terminal demo */} -
-
+ {/* Terminal demo - centered, overlapping hero and features */} +
+
{/* Terminal header */}
@@ -149,6 +161,37 @@ export function Hero(props: HeroProps) {
+ + {/* Features grid */} +
+
+

+ {t('Full-featured gateway')} +

+

+ {t('Everything you need to manage, route, and monitor LLM API traffic')} +

+
+ +
+ {features.map((feature) => ( +
+
+ +
+

+ {t(feature.title)} +

+

+ {t(feature.desc)} +

+
+ ))} +
+
) diff --git a/web/default/src/i18n/locales/en.json b/web/default/src/i18n/locales/en.json index 88e632d9e..0ad5628da 100644 --- a/web/default/src/i18n/locales/en.json +++ b/web/default/src/i18n/locales/en.json @@ -940,6 +940,19 @@ "Full-featured gateway": "Full-featured gateway", "Key management": "Key management", "Multi-model routing": "Multi-model routing", + "Multi-model Routing": "Multi-model Routing", + "Intelligent routing across providers with automatic failover and load balancing": "Intelligent routing across providers with automatic failover and load balancing", + "Key Management": "Key Management", + "Centralized API key lifecycle management with usage tracking and rotation": "Centralized API key lifecycle management with usage tracking and rotation", + "Access Control": "Access Control", + "Fine-grained permissions, rate limiting, and token-level access policies": "Fine-grained permissions, rate limiting, and token-level access policies", + "Real-time Monitoring": "Real-time Monitoring", + "Live dashboards with request latency, token usage, and cost analytics": "Live dashboards with request latency, token usage, and cost analytics", + "OpenAI Compatible": "OpenAI Compatible", + "Drop-in replacement for OpenAI API — no code changes required": "Drop-in replacement for OpenAI API — no code changes required", + "Model Mapping": "Model Mapping", + "Map model names, override parameters, and customize per-channel behavior": "Map model names, override parameters, and customize per-channel behavior", + "Everything you need to manage, route, and monitor LLM API traffic": "Everything you need to manage, route, and monitor LLM API traffic", "No more re-entering API keys. Everything is saved, so you connect instantly.": "No more re-entering API keys. Everything is saved, so you connect instantly.", "Real-time monitoring": "Real-time monitoring", "Ready to get started?": "Ready to get started?", diff --git a/web/default/src/i18n/locales/zh.json b/web/default/src/i18n/locales/zh.json index 13b5a1fcd..60a4a409b 100644 --- a/web/default/src/i18n/locales/zh.json +++ b/web/default/src/i18n/locales/zh.json @@ -940,6 +940,19 @@ "Full-featured gateway": "全功能网关", "Key management": "密钥管理", "Multi-model routing": "多模型路由", + "Multi-model Routing": "多模型路由", + "Intelligent routing across providers with automatic failover and load balancing": "跨供应商智能路由,自动故障转移与负载均衡", + "Key Management": "密钥管理", + "Centralized API key lifecycle management with usage tracking and rotation": "集中管理 API 密钥生命周期,追踪用量与轮换", + "Access Control": "访问控制", + "Fine-grained permissions, rate limiting, and token-level access policies": "细粒度权限、速率限制与令牌级访问策略", + "Real-time Monitoring": "实时监控", + "Live dashboards with request latency, token usage, and cost analytics": "实时仪表盘,监控请求延迟、令牌用量与成本分析", + "OpenAI Compatible": "兼容 OpenAI", + "Drop-in replacement for OpenAI API — no code changes required": "直接替换 OpenAI API,无需修改代码", + "Model Mapping": "模型映射", + "Map model names, override parameters, and customize per-channel behavior": "映射模型名称、覆盖参数、自定义渠道行为", + "Everything you need to manage, route, and monitor LLM API traffic": "管理、路由和监控大模型 API 流量所需的一切", "No more re-entering API keys. Everything is saved, so you connect instantly.": "无需重复输入 API 密钥,一切已保存,即刻连接。", "Real-time monitoring": "实时监控", "Ready to get started?": "准备开始了吗?",