Skip to content

feat(i18n): 根级 ConfigProvider 与 dayjs locale 联动,使 DatePicker 随语言切换#10

Open
NicCraver wants to merge 1 commit into1sdv:mainfrom
NicCraver:main
Open

feat(i18n): 根级 ConfigProvider 与 dayjs locale 联动,使 DatePicker 随语言切换#10
NicCraver wants to merge 1 commit into1sdv:mainfrom
NicCraver:main

Conversation

@NicCraver
Copy link
Copy Markdown

  • 新增 i18n/antd-locale.ts,穷尽映射 AppLocale → ant-design-vue / dayjs
  • App.vue 使用 a-config-provider,并在语言 watch 中同步 dayjs.locale
  • Home/Landing 无需改动,子树继承全局 locale

这次改动主要解决的是:切换 vue-i18n 语言(中/英/日)时,a-date-picker 没有完整跟着变的问题。

@TooAme
Copy link
Copy Markdown
Collaborator

TooAme commented Mar 27, 2026

这个修复看起来没问题,但可能随时被取代。如果你有兴趣,我们其实在多语言化方面还有一个类似的待改进点,要不要一起处理一下?
具体就是当前agent默认只会输出中文,只改静态文本是不够的,需要根据选择的语言拼接对应的提示词使其输出对应语言内容,实现除了高德(预定被google map取代)等只有中文的工具外功能的多语言化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants