From 8bac413237f3cc27537242d97507c4922000d667 Mon Sep 17 00:00:00 2001 From: sanbuphy Date: Thu, 26 Feb 2026 12:59:01 +0800 Subject: [PATCH] feat: add i18n support for ChapterIntroduction component - Add chapter-introduction locale files for zh-cn and en - Update ChapterIntroduction.vue to use useI18n composable - Fix import paths in ChapterIntroduction.vue --- .../theme/components/ChapterIntroduction.vue | 12 ++-- .../locales/chapter-introduction/index.js | 14 +++++ docs/en/appendix/index.md | 58 +++++++++---------- .../1.1-introduction-to-ai-ide/index.md | 6 +- 4 files changed, 54 insertions(+), 36 deletions(-) create mode 100644 docs/.vitepress/theme/locales/chapter-introduction/index.js diff --git a/docs/.vitepress/theme/components/ChapterIntroduction.vue b/docs/.vitepress/theme/components/ChapterIntroduction.vue index ece524d..b1b3cef 100644 --- a/docs/.vitepress/theme/components/ChapterIntroduction.vue +++ b/docs/.vitepress/theme/components/ChapterIntroduction.vue @@ -1,5 +1,9 @@