增加页面语种,添加中文展示#71
Open
xfbyxq wants to merge 4 commits intoHKUDS:mainfrom
Open
Conversation
- 在国际化上下文中新增语言状态和切换方法 - 使用本地存储记忆用户语言选择 - 扩充中文翻译内容,覆盖界面各部分文本 - 在布局组件中新增语言切换按钮实现中英文互换 - 语言切换按钮支持界面提示和状态显示 - 优化I18nProvider以动态切换语言包和更新组件状态
- 防止macOS系统生成的.DS_Store文件被提交 - 保持版本库整洁,避免不必要的系统文件污染 - 更新.gitignore文件忽略.DS_Store文件
- 新增efinance数据加载器,支持A股、美股、港股及ETF数据,无需认证 - 在环境示例文件中添加efinance说明文本 - 更新数据源列表,新增"efinance"选项,支持多市场数据获取 - 修改后端代码以支持efinance作为数据源的调用 - 调整回测工具配置校验,新增efinance数据源的校验逻辑 - 修正加载器注册表,添加efinance加载器到支持的市场回退链中
- 新增 fetch_data_v3.py,使用 OKX API 和其他公开来源抓取加密市场及宏观指标数据 - 新增 fetch_data_v4.py,更新使用有效API来源,抓取汇率、加密货币、期货等市场数据 - 新增 fetch_macro_data_v2.py,支持 A 股市场主要指数及全球宏观指标,增加请求间延迟避免限流 - 新增 fetch_macro_data.py,原版 A 股宏观行情抓取,支持大盘指数、美股、港股、ETF、利率及商品价格 - 所有脚本均支持数据打印与保存 macro_data.json,便于后续分析使用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
localStorage持久化用户语言偏好,刷新页面后自动恢复改动详情
国际化语言切换(
frontend/src/lib/i18n.tsx)lang/setLang,通过useI18n()暴露给组件使用localStorage存取逻辑,持久化语言选择I18nProvider,通过useMemo实现语言包动态切换侧边栏切换按钮(
frontend/src/components/layout/Layout.tsx)杂项(
.gitignore).DS_Store,防止 macOS 系统文件被跟踪测试