feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run

This commit is contained in:
2025-12-27 15:42:57 +08:00
parent fc9c726de4
commit 55abf26cfa
78 changed files with 3024 additions and 103 deletions

17
AI-Coding/06-i18n.md Normal file
View File

@@ -0,0 +1,17 @@
# 06. 国际化i18n
- 文件:`src/i18n/index.ts`
- 关键点:
- `legacy: false`Composition API 模式)
- 内置 `en``zh` 为空对象(等待补充)
- 提供 `translate(message)` 辅助函数
- 导出 Element Plus 语言包:`enLocale` / `zhLocale`
## 扩展建议
- 新增语言:在 `src/i18n/locales/` 添加 `xx.json` 并合并到 `messages`
## 验收点
- 切换语言后页面能按预期渲染
- Element Plus 语言包切换有效