From f841d09010f02fe582149f68a0c812d670b356e4 Mon Sep 17 00:00:00 2001 From: yoge Date: Wed, 25 Mar 2026 13:15:25 +0800 Subject: [PATCH] feat: add marketing translations for en and zh Co-Authored-By: Claude Opus 4.6 --- src/lib/translations.ts | 152 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 150 insertions(+), 2 deletions(-) diff --git a/src/lib/translations.ts b/src/lib/translations.ts index a737362..3ba7fea 100644 --- a/src/lib/translations.ts +++ b/src/lib/translations.ts @@ -105,7 +105,81 @@ export const translations = { taskTimeout: 'Task timeout: Recognition took too long.', networkError: 'Task timeout or network error.', uploadFailed: 'Upload failed', - } + }, + marketing: { + nav: { + home: 'Home', + docs: 'Docs', + blog: 'Blog', + pricing: 'Pricing', + contact: 'Contact', + launchApp: 'Launch App', + }, + hero: { + title: 'Convert Math Formulas to LaTeX in Seconds', + subtitle: 'AI-powered OCR for handwritten and printed mathematical formulas. Get LaTeX, MathML, and Markdown output instantly.', + cta: 'Try It Free', + ctaSecondary: 'Learn More', + }, + features: { + title: 'Features', + subtitle: 'Everything you need for formula recognition', + handwriting: 'Handwriting Recognition', + handwritingDesc: 'Accurately recognize handwritten math formulas from photos or scans', + multiFormat: 'Multi-Format Output', + multiFormatDesc: 'Export to LaTeX, MathML, Markdown, Word, and more', + pdf: 'PDF Support', + pdfDesc: 'Upload PDF documents and extract formulas automatically', + batch: 'Batch Processing', + batchDesc: 'Process multiple files at once for maximum efficiency', + accuracy: 'High Accuracy', + accuracyDesc: 'Powered by advanced AI models for industry-leading accuracy', + free: 'Free to Start', + freeDesc: 'Get started with free uploads, no credit card required', + }, + howItWorks: { + title: 'How It Works', + step1: 'Upload', + step1Desc: 'Upload an image or PDF containing math formulas', + step2: 'Recognize', + step2Desc: 'Our AI analyzes and recognizes the formulas', + step3: 'Export', + step3Desc: 'Copy or export results in your preferred format', + }, + pricing: { + title: 'Pricing', + subtitle: 'Choose the plan that fits your needs', + free: 'Free', + pro: 'Pro', + enterprise: 'Enterprise', + monthly: '/month', + custom: 'Custom', + getStarted: 'Get Started', + comingSoon: 'Coming Soon', + contactUs: 'Contact Us', + popular: 'Most Popular', + freeFeatures: ['3 uploads/day', 'LaTeX & Markdown output', 'Community support'], + proFeatures: ['Unlimited uploads', 'All export formats', 'Priority processing', 'API access'], + enterpriseFeatures: ['Custom volume', 'Dedicated support', 'SLA guarantee', 'On-premise option'], + }, + contact: { + title: 'Contact Us', + subtitle: 'Get in touch with our team', + nameLabel: 'Name', + emailLabel: 'Email', + messageLabel: 'Message', + send: 'Send Message', + sending: 'Sending...', + sent: 'Message sent!', + qqGroup: 'QQ Group', + }, + footer: { + tagline: 'AI-powered math formula recognition', + product: 'Product', + resources: 'Resources', + contactTitle: 'Contact', + }, + }, }, zh: { common: { @@ -213,7 +287,81 @@ export const translations = { taskTimeout: '任务超时:识别时间过长。', networkError: '任务超时或网络错误。', uploadFailed: '上传失败', - } + }, + marketing: { + nav: { + home: '首页', + docs: '文档', + blog: '博客', + pricing: '价格', + contact: '联系我们', + launchApp: '启动应用', + }, + hero: { + title: '数学公式秒级转换为 LaTeX', + subtitle: 'AI 驱动的手写和印刷体数学公式识别,即时输出 LaTeX、MathML 和 Markdown。', + cta: '免费试用', + ctaSecondary: '了解更多', + }, + features: { + title: '功能特性', + subtitle: '公式识别所需的一切', + handwriting: '手写识别', + handwritingDesc: '精准识别照片或扫描件中的手写数学公式', + multiFormat: '多格式输出', + multiFormatDesc: '导出为 LaTeX、MathML、Markdown、Word 等格式', + pdf: 'PDF 支持', + pdfDesc: '上传 PDF 文档,自动提取公式', + batch: '批量处理', + batchDesc: '一次处理多个文件,效率最大化', + accuracy: '高精度', + accuracyDesc: '由先进 AI 模型驱动,行业领先的识别精度', + free: '免费开始', + freeDesc: '免费上传体验,无需信用卡', + }, + howItWorks: { + title: '使用流程', + step1: '上传', + step1Desc: '上传包含数学公式的图片或 PDF', + step2: '识别', + step2Desc: '我们的 AI 分析并识别公式', + step3: '导出', + step3Desc: '复制或导出为你喜欢的格式', + }, + pricing: { + title: '价格方案', + subtitle: '选择适合您的方案', + free: '免费版', + pro: '专业版', + enterprise: '企业版', + monthly: '/月', + custom: '定制', + getStarted: '开始使用', + comingSoon: '即将推出', + contactUs: '联系我们', + popular: '最受欢迎', + freeFeatures: ['每日 3 次上传', 'LaTeX 和 Markdown 输出', '社区支持'], + proFeatures: ['无限上传', '所有导出格式', '优先处理', 'API 访问'], + enterpriseFeatures: ['自定义用量', '专属支持', 'SLA 保障', '私有部署选项'], + }, + contact: { + title: '联系我们', + subtitle: '与我们的团队取得联系', + nameLabel: '姓名', + emailLabel: '邮箱', + messageLabel: '留言', + send: '发送消息', + sending: '发送中...', + sent: '消息已发送!', + qqGroup: 'QQ 群', + }, + footer: { + tagline: 'AI 驱动的数学公式识别', + product: '产品', + resources: '资源', + contactTitle: '联系方式', + }, + }, } };