feat: 初始化项目结构并添加基础配置
添加前后端基础项目结构,包括.gitignore、package.json等配置文件 实现前端基础功能模块,包括路由、状态管理、API请求封装等 添加前端UI组件库和样式体系 配置开发环境Mock系统和构建工具链
This commit is contained in:
17
front-end/AI-Coding/06-i18n.md
Normal file
17
front-end/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