From 6d633eeac46aa534fa51778cd734c1676af38cba Mon Sep 17 00:00:00 2001 From: YANG JIANKUAN Date: Fri, 3 Apr 2026 13:15:42 +0800 Subject: [PATCH] feat: add i18n translation keys for auth pages --- packages/web/src/lib/i18n.tsx | 78 +++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/packages/web/src/lib/i18n.tsx b/packages/web/src/lib/i18n.tsx index 4164cda..309d0c5 100644 --- a/packages/web/src/lib/i18n.tsx +++ b/packages/web/src/lib/i18n.tsx @@ -17,6 +17,45 @@ const translations: AllTranslations = { 'nav.getStarted': 'Get Started', 'nav.dashboard': 'Dashboard', + // Auth - Branding + 'auth.productName': 'AgentFox', + 'auth.slogan': 'API Docs for LLMs, Done Right', + 'auth.feature1': 'Multi-level API retrieval for minimal token usage', + 'auth.feature2': 'Import OpenAPI specs in seconds', + 'auth.feature3': 'Works with any MCP-compatible LLM', + + // Auth - Login + 'auth.login.title': 'Sign in to your account', + 'auth.login.email': 'Email', + 'auth.login.password': 'Password', + 'auth.login.submit': 'Sign In', + 'auth.login.submitting': 'Signing in...', + 'auth.login.noAccount': "Don't have an account?", + 'auth.login.signUp': 'Sign Up', + 'auth.login.or': 'or continue with', + + // Auth - Register + 'auth.register.title': 'Create your account', + 'auth.register.subtitle': 'Get started with AgentFox', + 'auth.register.name': 'Name', + 'auth.register.email': 'Email', + 'auth.register.password': 'Password', + 'auth.register.submit': 'Create Account', + 'auth.register.submitting': 'Creating account...', + 'auth.register.hasAccount': 'Already have an account?', + 'auth.register.signIn': 'Sign In', + 'auth.register.or': 'or continue with', + + // Auth - OAuth + 'auth.oauth.google': 'Google', + 'auth.oauth.github': 'GitHub', + 'auth.oauth.apple': 'Apple', + + // Auth - Callback + 'auth.callback.loading': 'Completing sign in...', + 'auth.callback.error': 'Sign in failed', + 'auth.callback.retry': 'Try again', + // Hero 'hero.badge': 'MCP-Powered API Intelligence', 'hero.title': 'API Docs for LLMs,', @@ -159,6 +198,45 @@ const translations: AllTranslations = { 'nav.getStarted': '免费开始', 'nav.dashboard': '控制台', + // Auth - Branding + 'auth.productName': 'AgentFox', + 'auth.slogan': 'LLM 专属 API 文档方案', + 'auth.feature1': '多级 API 检索,最小化 Token 消耗', + 'auth.feature2': '秒级导入 OpenAPI 文档', + 'auth.feature3': '兼容所有 MCP 协议的 LLM 工具', + + // Auth - Login + 'auth.login.title': '登录到您的账户', + 'auth.login.email': '邮箱', + 'auth.login.password': '密码', + 'auth.login.submit': '登录', + 'auth.login.submitting': '登录中...', + 'auth.login.noAccount': '还没有账户?', + 'auth.login.signUp': '注册', + 'auth.login.or': '或者通过以下方式继续', + + // Auth - Register + 'auth.register.title': '创建您的账户', + 'auth.register.subtitle': '开始使用 AgentFox', + 'auth.register.name': '姓名', + 'auth.register.email': '邮箱', + 'auth.register.password': '密码', + 'auth.register.submit': '创建账户', + 'auth.register.submitting': '创建中...', + 'auth.register.hasAccount': '已经有账户了?', + 'auth.register.signIn': '登录', + 'auth.register.or': '或者通过以下方式继续', + + // Auth - OAuth + 'auth.oauth.google': 'Google', + 'auth.oauth.github': 'GitHub', + 'auth.oauth.apple': 'Apple', + + // Auth - Callback + 'auth.callback.loading': '正在完成登录...', + 'auth.callback.error': '登录失败', + 'auth.callback.retry': '重试', + // Hero 'hero.badge': 'MCP 驱动的 API 智能服务', 'hero.title': '为 LLM 而生的',