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

feat: add check status to language button #243

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

cuiyiming1998
Copy link
Contributor

@cuiyiming1998 cuiyiming1998 commented Jan 16, 2023

Types of changes

  • New feature
  • Bug fix
  • Documentation change
  • Coding style change
  • Refactoring
  • Performance improvement
  • Test cases
  • Continuous integration
  • Typescript definition change
  • Breaking change

Background and context

顶部导航栏语言切换按钮 如果一直点当前设置的语言 会一直Message.success弹窗

Solution

加了个当前语言的判断 在当前语言前会显示对钩 重复设置时会在useLocale里直接return掉

How is the change tested?

Changelog

Changelog(CN) Changelog(EN) Related issues

Checklist:

  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)

Other information

@sHow8e sHow8e merged commit 166e5be into arco-design:main Feb 7, 2023
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