Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(i18n): 优化国际化配置并添加类型注解 #808

Closed
wants to merge 1 commit into from

Conversation

xp1001
Copy link

@xp1001 xp1001 commented Jan 10, 2025

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

相关issue

#648

💡 需求背景和解决方案

  1. vscode编辑中,在ts中直接使用t('xx.xx.xx.xx.xx')时会报“类型实例化过深,且可能无限”。
  2. 通过在国际化配置中添加类型注解,消除此报警。

📝 更新日志

  • refactor(i18n): 优化国际化配置并添加类型注解,修复后续在ts定义文件中直接使用“t('xx.xx.xx.xx')”时编辑器报“类型实例化过深,且可能无限”的警告

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

- 修复后续在ts定义文件中直接使用“t('xx.xx.xx.xx')”时编辑器报“类型实例化过深,且可能无限”的警告
@timi137137
Copy link
Collaborator

在新版本中会移除国际化相关功能,故这个PR不予合并。如果有需要可以为自己的代码进行添加

@timi137137 timi137137 closed this Jan 10, 2025
@xp1001
Copy link
Author

xp1001 commented Jan 10, 2025 via email

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