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

🌐 chore: update i18n hook #148

Merged
merged 1 commit into from
Mar 27, 2024
Merged

🌐 chore: update i18n hook #148

merged 1 commit into from
Mar 27, 2024

Conversation

LCJove
Copy link
Collaborator

@LCJove LCJove commented Mar 27, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

使用hook的方式引入国际化:
const { localeObject } = useProChatLocale();

在主页添加了国际化的例子

📝 补充信息 | Additional Information

对于无法使用hook的情况下,还是使用gLocaleObject(locale)的方式来做

Copy link

github-actions bot commented Mar 27, 2024

🎊 PR Preview 287b21e has been successfully built and deployed to https://ant-design-pro-chat-preview-pr-148.surge.sh

🕐 Build time: 56.832s

🤖 By surge-preview

@ONLY-yours ONLY-yours merged commit f832cf6 into main Mar 27, 2024
5 checks passed
@ONLY-yours ONLY-yours deleted the feat/gyz-i18n-4 branch March 27, 2024 06:37
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