diff --git a/.spec/specs/2026-10-25_add-blog-i18n/tasks.md b/.spec/specs/2026-10-25_add-blog-i18n/tasks.md index f7b67a3..697d3e8 100644 --- a/.spec/specs/2026-10-25_add-blog-i18n/tasks.md +++ b/.spec/specs/2026-10-25_add-blog-i18n/tasks.md @@ -10,7 +10,7 @@ - boundary: 只改 astro.config.mjs(i18n 段)与 src/lib/locale.ts(当前语言工具) - verify: `pnpm astro build` -- [ ] T2 UI 字典 + 组件串接 +- [x] T2 UI 字典 + 组件串接 - depends-on: task_0001 - claim: op-gitea(mesh 车道,预约 src/i18n/ 与 Footer/SearchDialog/gallery/moments/about) - boundary: 新建 src/i18n/ui.ts(zh/en 字典)并串接 Footer/SearchDialog/gallery/moments/about 页的静态文案;不碰 Header/BaseLayout(orchestrator 的语言切换在那) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 9b53d13..ee27196 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,5 +1,13 @@ --- // 页脚:版权 + ICP 备案(法定保留)+ 构建透明槽位(T7 built-from 填充) +import { t } from '../i18n/ui'; +import type { Locale } from '../lib/locale'; + +// /en/ 侧由 T4 薄页传 locale='en';zh 路由无人传参,默认 zh 零回归 +interface Props { + locale?: Locale; +} +const { locale = 'zh' } = Astro.props; ---