Files
ai-directory-platform/sites/devai-tools/src/site/brand.tsx
T
AI Directory Platform 5cc4195d68 fix: 语言切换全面修复 —— 品牌层/主题首页/详情区块/404 全量 i18n(zh 矩阵 13/13)
- 站点品牌双语:每站 brandZh(品牌名/标语/hero/导航/页脚/搜索占位)由生成器写入
  站点 messages 的 zh 覆盖;SiteChrome 改为 async getTranslations 按语言渲染
- 五套主题首页接线 siteHome/hero 命名空间(新增 wire-theme-i18n.py 一次性接线脚本,
  仅处理组件函数体、hook 自动插入、hero 用 th 命名空间)
- 详情页 Use cases/Good for/FAQ/reviewCta、用例与合集索引与详情、提交页、
  对比页、Alternatives 表头与 FAQ 全部走 next-intl
- 404 双语言:locale 内走 next-intl,根级按 Accept-Language
- 修复 zh.json 中 84 处 zhXxx 旁挂键归位 + en.json 残留清理(i18n 694 键一致)
- 回归:/zh 下 13 页全中文无英文残留、无横向溢出;五站 /zh lang=zh 全部正确
2026-09-09 16:59:52 +00:00

116 lines
2.6 KiB
TypeScript

import type { SiteConfig } from "@/kit/types";
// DevAI.tools —— 独立站点的全部品牌/导航/页脚配置
export const siteConfig: SiteConfig = {
"brandZh": {
"name": "DevAI.tools",
"tagline": "面向开发者的 AI 工具——精选、实测、社区排名。",
"headline": "开发者的 AI 工具",
"subheadline": "代码助手、运维自动化、测试副驾驶,你上手的一切。",
"nav": [
"工具",
"工作流",
"用例",
"排行榜",
"提交"
],
"footer": [
"目录",
"构建",
"法律"
],
"searchPlaceholder": "搜索开发者工具..."
},
"accent": "150 60% 30%",
"port": 3004,
"brand": {
"name": "DevAI.tools",
"tagline": "AI tools for developers — curated, tested, ranked by the community.",
"headline": "AI tools for developers",
"subheadline": "Code assistants, DevOps automation, testing copilots and everything else you ship with."
},
"navItems": [
{
"label": "Tools",
"href": "/tools"
},
{
"label": "Workflows",
"href": "/best"
},
{
"label": "Use Cases",
"href": "/ai-tools-for"
},
{
"label": "Rankings",
"href": "/rankings"
},
{
"label": "Submit",
"href": "/submit"
}
],
"footerGroups": [
{
"title": "Directory",
"links": [
{
"label": "All Tools",
"href": "/tools"
},
{
"label": "Rankings",
"href": "/rankings"
},
{
"label": "Use Cases",
"href": "/ai-tools-for"
}
]
},
{
"title": "Build",
"links": [
{
"label": "Workflows",
"href": "/best"
},
{
"label": "Submit a Tool",
"href": "/submit"
},
{
"label": "Blog",
"href": "/blog"
}
]
},
{
"title": "Legal",
"links": [
{
"label": "Terms",
"href": "/terms"
},
{
"label": "Privacy",
"href": "/privacy"
}
]
}
],
"searchPlaceholder": "Search dev tools...",
"seo": {
"en": {
"title": "DevAI.tools — AI Tools for Developers",
"description": "Code assistants, DevOps automation and testing copilots — the AI tools developers actually upvote, ranked daily."
},
"zh": {
"title": "DevAI.tools — 开发者 AI 工具",
"description": "面向开发者的 AI 工具目录:代码助手、运维自动化、测试副驾驶,由社区每日排名。"
}
},
"id": "devai-tools"
};