datai-vue/CHANGELOG.md

28 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.0.0] - 2026-01-26
### Added
- 实现前端国际化基础架构,包括:
- 引入 vue-i18n@9 核心库,支持 Vue 3 Composition API
- 建立标准化的资源目录结构src/locales/
- 创建中文和英文翻译文件zh-CN.ts、en-US.ts
- 封装通用的语言切换组件LangSelect
- 配置网络拦截器自动注入 Accept-Language 请求头
- 集成 Element Plus 的国际化支持ElConfigProvider
### Changed
- `src/store/modules/app.ts` - 新增 language 状态字段和 setLanguage action
- `src/layout/components/Navbar/index.vue` - 集成 LangSelect 组件到导航栏
- `src/utils/request.ts` - 在请求拦截器中注入 Accept-Language 请求头
- `src/App.vue` - 集成 ElConfigProvider 组件,支持 Element Plus 国际化
- `src/main.ts` - 注册 i18n 插件
### Dependencies
- 新增 vue-i18n@9