diff --git a/src/components/geek/Keyboard.astro b/src/components/geek/Keyboard.astro index 2868976..79d5845 100644 --- a/src/components/geek/Keyboard.astro +++ b/src/components/geek/Keyboard.astro @@ -1,6 +1,10 @@ --- // 键盘层(极客层 P0):? 帮助 / t 主题 / g-chords 导航 // 惯例来源:GitHub 键位(g+N、? 帮助);每项能力都有可视入口(触屏等价物原则) +// 文案全部 ui.ts 词条:locale 构建期按页面 URL 自推断(BaseLayout 不透传,同 Footer 模式) +import { t } from '../../i18n/ui'; +import { localeOf } from '../../lib/locale'; +const locale = localeOf(Astro.url.pathname); const routes: Record = { h: '/', a: '/archives/', @@ -11,21 +15,21 @@ const routes: Record = { --- -

键盘快捷键

+

{t('kbd_title', locale)}

- - - - - - - - - + + + + + + + + +
Ctrl K命令面板
t切换明暗
?本帮助
g h首页
g a文章
g g图库
g m瞬间
/terminal终端彩蛋
Esc关闭浮层
Ctrl K{t('kbd_palette', locale)}
t{t('kbd_theme_toggle', locale)}
?{t('kbd_this_help', locale)}
g h{t('kbd_gh_home', locale)}
g a{t('kbd_ga_posts', locale)}
g g{t('kbd_gg_gallery', locale)}
g m{t('kbd_gm_moments', locale)}
/terminal{t('kbd_terminal', locale)}
Esc{t('kbd_esc_close', locale)}
-

提示:试试终端彩蛋(Phase 4 上线 ~)

+

{t('kbd_hint', locale)}