This is an automated email from the ASF dual-hosted git repository. young pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push: new fd7dc1e27 feat(LanguageMenu): selected item style (#3179) fd7dc1e27 is described below commit fd7dc1e273df71540cf27abbfb2d2fc0897f3057 Author: YYYoung <isk...@outlook.com> AuthorDate: Tue Aug 19 11:08:37 2025 +0800 feat(LanguageMenu): selected item style (#3179) Co-authored-by: SkyeYoung <48400568+skyeyo...@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+copi...@users.noreply.github.com> --- src/components/Header/LanguageMenu.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Header/LanguageMenu.tsx b/src/components/Header/LanguageMenu.tsx index eec0e4c96..6b7602560 100644 --- a/src/components/Header/LanguageMenu.tsx +++ b/src/components/Header/LanguageMenu.tsx @@ -56,6 +56,13 @@ export const LanguageMenu = () => { {Object.keys(LangMap).map((lang) => ( <Menu.Item key={lang} + {...(lang === i18n.language && { + disabled: true, + style: { + backgroundColor: + 'var(--menu-item-hover, var(--mantine-color-gray-1))', + }, + })} onClick={async () => { await i18n.changeLanguage(lang); }}