feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run
Some checks are pending
Call HTTPS API / build (push) Waiting to run
This commit is contained in:
17
AI-Coding/06-i18n.md
Normal file
17
AI-Coding/06-i18n.md
Normal 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 语言包切换有效
|
||||
Reference in New Issue
Block a user