\r\n \u003C/template>\r\n \u003C/div>\r\n \u003C/VPFlyout>\r\n\u003C/template>\r\n```\r\n\r\nI'm planning to provide a PR for this issue, if you agree. But I might need some guidance in how to provide the changes properly.\r\n\r\nIt seems like setting property `label` for component `VPFlyout` should resolve the issue. However, this value should be configurable for different locales IMO.\r\n\n\n### Reproduction\n\nConfigure vitepress for 2 locales at least to enable the \"Switch Language\" button in the navbar. Using a screen reader, the button is not announced properly (e.g. \"popup button collapse\").\n\n### Expected behavior\n\nThe `aria-label` property of the `button` element of `VPFlyout` in `VPNavBarTranslations` should be set.\r\n\r\n```html\r\n\u003C!-- src/client/theme-default/components/VPNavBarTranslations.vue -->\r\n\u003Ctemplate>\r\n \u003CVPFlyout\r\n v-if=\"localeLinks.length && currentLang.label\"\r\n class=\"VPNavBarTranslations\"\r\n :icon=\"VPIconLanguages\"\r\n :label=\"Switch Language\"\r\n >\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">{{ currentLang.label }}\u003C/p>\r\n\r\n \u003Ctemplate v-for=\"locale in localeLinks\" :key=\"locale.link\">\r\n \u003CVPMenuLink :item=\"locale\" />\r\n \u003C/template>\r\n \u003C/div>\r\n \u003C/VPFlyout>\r\n\u003C/template>\r\n```\r\n\r\nor\r\n\r\n```html\r\n\u003C!-- src/client/theme-default/components/VPNavBarTranslations.vue -->\r\n\u003Ctemplate>\r\n \u003CVPFlyout\r\n v-if=\"localeLinks.length && currentLang.label\"\r\n class=\"VPNavBarTranslations\"\r\n :icon=\"VPIconLanguages\"\r\n :label=\"currentLang.languageButtonAriaLabel\"\r\n >\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">{{ currentLang.label }}\u003C/p>\r\n\r\n \u003Ctemplate v-for=\"locale in localeLinks\" :key=\"locale.link\">\r\n \u003CVPMenuLink :item=\"locale\" />\r\n \u003C/template>\r\n \u003C/div>\r\n \u003C/VPFlyout>\r\n\u003C/template>\r\n```\r\n\r\nRelevant HTML code should look like this:\r\n\r\n```html\r\n\u003Cdiv class=\"VPFlyout VPNavBarTranslations translations\">\r\n \u003Cbutton type=\"button\" class=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\" aria-label=\"Switch Language\">\r\n \u003Cspan class=\"text\">\r\n \u003Csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\" class=\"option-icon\" >\r\n \u003Csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\" class=\"text-icon\">\r\n \u003C/span>\r\n \u003C/button>\r\n \u003Cdiv class=\"menu\">\r\n \u003Cdiv class=\"VPMenu\">\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">Deutsch\u003C/p>\r\n \u003Cdiv class=\"VPMenuLink\">\r\n \u003Ca class=\"VPLink link\" href=\"...\">English\u003C/a>\r\n \u003C/div>\r\n \u003C/div>\r\n \u003C/div>\r\n \u003C/div>\r\n\u003C/div>\r\n```\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)\r\n CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz\r\n Memory: 22.58 GB / 31.13 GB\r\n Container: Yes\r\n Shell: 5.0.17 - /bin/bash\r\n Binaries:\r\n Node: 18.14.0 - ~/.nvm/versions/node/v18.14.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v18.14.0/bin/yarn\r\n npm: 9.3.1 - ~/.nvm/versions/node/v18.14.0/bin/npm\r\n Browsers:\r\n Chrome: 110.0.5481.177\r\n Chromium: 110.0.5481.177\r\n Firefox: 110.0.1\n```\n\n\n### Additional context\n\nFollowing website explains the accessibility issue and possible solution in detail: https://dequeuniversity.com/rules/axe/4.4/button-name\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2932],{"name":2868,"color":2869},2021,"'Switch Language' Button does not have an accessible name","2023-03-16T00:04:26Z","https://github.com/vuejs/vitepress/issues/2021",0.74790025,{"description":2939,"labels":2940,"number":2944,"owner":2874,"repository":2875,"state":2888,"title":2945,"updated_at":2946,"url":2947,"score":2948},"**Is your feature request related to a problem? Please describe.**\r\n\r\nThe current documentation is unclear on how to use `enhanceApp` in a custom theme `.vitepress/theme/config.js`\r\n\r\nI'm trying to add a new custom route redirecting all pages with url like `/tags/*` to `/tag/`\r\n\r\n**Describe the solution you'd like**\r\n\r\nA documentation with an example on how to declare a new custom route in `Theme.enhanceApp` in config.js.\r\nIdeally, the newly declared route can have the following format `/tags/:id`, where `:id` is extracted by the router and added to route.data.parameter\r\n\r\n**Describe alternatives you've considered**\r\n\r\nA method to surcharge the Router, or the possibility to surcharge the `loadPageModule` parameter of `createRouter`\r\nAny other solution allowing me to have parameter in my url (without ? )\r\n\r\n\r\n",[2941],{"name":2942,"color":2943},"docs","0075ca",278,"Documentation on how to use `enhanceApp` ","2023-01-21T16:04:07Z","https://github.com/vuejs/vitepress/issues/278",0.7485741,{"description":2950,"labels":2951,"number":2953,"owner":2874,"repository":2875,"state":2888,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\r\n\r\nA packaging error occurred when I ran pnpm run docs:build\r\n\r\n\r\nI didn't use cloneDeep in my project\r\n\r\n\r\nMy themeConfig configuration:\r\n```ts\r\nimport { getNavRouter } from \"./utils/nav\";\r\nimport { getSidebarRouter } from \"./utils/sidebar\";\r\n\r\nimport { defineConfig } from \"vitepress\";\r\nimport { mdPlugin } from \"./config/plugins\";\r\n\r\nexport default defineConfig({\r\n // refer: https://vitepress.vuejs.org/guide/i18n\r\n // issue: https://github.com/vuejs/vitepress/issues/1860\r\n title: \"Hview UI\",\r\n locales: {\r\n root: {\r\n label: \"简体中文\",\r\n lang: \"zh-CN\",\r\n themeConfig: {\r\n // @ts-ignore\r\n nav: getNavRouter(),\r\n // @ts-ignore\r\n sidebar: getSidebarRouter(),\r\n lastUpdatedText: \"最后更新时间\",\r\n docFooter: {\r\n prev: \"上一篇\",\r\n next: \"下一篇\",\r\n },\r\n },\r\n },\r\n \"en-US\": {\r\n label: \"English\",\r\n lang: \"en-US\",\r\n themeConfig: {\r\n // @ts-ignore\r\n nav: getNavRouter(\"/en-US/\"),\r\n // @ts-ignore\r\n sidebar: getSidebarRouter(\"/en-US/\"),\r\n lastUpdatedText: \"Last update time\",\r\n docFooter: {\r\n prev: \"Previous article\",\r\n next: \"Next article\",\r\n },\r\n },\r\n },\r\n },\r\n base: process.env.NODE_ENV === \"production\" ? \"/hview-ui/\" : \"/\",\r\n head: [\r\n [\"link\", { rel: \"icon\", href: \"/favicon.png\" }],\r\n [\r\n \"meta\",\r\n {\r\n name: \"viewport\",\r\n content: \"width=device-width, initial-scale=1.0,user-scalable=no\",\r\n },\r\n ],\r\n ],\r\n lastUpdated: true,\r\n themeConfig: {\r\n algolia: {\r\n apiKey: \"aea12a0a4281c855b5d23789e868f378\",\r\n indexName: \"interview-questions-record\",\r\n appId: \"XQYLP2L9WC\",\r\n locales: {\r\n root: {\r\n placeholder: \"搜索文档\",\r\n translations: {\r\n button: {\r\n buttonText: \"搜索文档\",\r\n buttonAriaLabel: \"搜索文档\",\r\n },\r\n modal: {\r\n searchBox: {\r\n resetButtonTitle: \"清除查询条件\",\r\n resetButtonAriaLabel: \"清除查询条件\",\r\n cancelButtonText: \"取消\",\r\n cancelButtonAriaLabel: \"取消\",\r\n },\r\n startScreen: {\r\n recentSearchesTitle: \"搜索历史\",\r\n noRecentSearchesText: \"没有搜索历史\",\r\n saveRecentSearchButtonTitle: \"保存至搜索历史\",\r\n removeRecentSearchButtonTitle: \"从搜索历史中移除\",\r\n favoriteSearchesTitle: \"收藏\",\r\n removeFavoriteSearchButtonTitle: \"从收藏中移除\",\r\n },\r\n errorScreen: {\r\n titleText: \"无法获取结果\",\r\n helpText: \"你可能需要检查你的网络连接\",\r\n },\r\n footer: {\r\n selectText: \"选择\",\r\n navigateText: \"切换\",\r\n closeText: \"关闭\",\r\n searchByText: \"搜索提供者\",\r\n },\r\n noResultsScreen: {\r\n noResultsText: \"无法找到相关结果\",\r\n suggestedQueryText: \"你可以尝试查询\",\r\n reportMissingResultsText: \"你认为该查询应该有结果?\",\r\n reportMissingResultsLinkText: \"点击反馈\",\r\n },\r\n },\r\n },\r\n },\r\n },\r\n },\r\n socialLinks: [\r\n {\r\n icon: \"github\",\r\n link: \"https://github.com/ChaiMayor/hview-ui\",\r\n },\r\n ],\r\n outline: [1, 3],\r\n outlineTitle: \"CONTENTS\",\r\n footer: {\r\n message: \"Released under the MIT License.\",\r\n copyright: \"Copyright © 2023-present 芜湖起飞\",\r\n },\r\n },\r\n markdown: {\r\n // dark-plus vscode\r\n // css-variables custom\r\n theme: \"css-variables\",\r\n config: (md) => mdPlugin(md),\r\n },\r\n async buildEnd(siteConfig) {},\r\n async transformHtml(code, id, context) {},\r\n async transformPageData(pageData) {},\r\n});\r\n\r\n```\r\n\r\nIf this snippet doesn't help you, go to the repository and find the `site` folder.\r\n\r\nrepo: https://github.com/ChaiMayor/hview-ui.\r\nUse `dev` to develop the branch.\r\n\r\nI'm not sure if this is my problem or vitepress's problem. I'm a beginner learning.\r\nThank you for your trouble😳.\r\n\r\n\r\n \r\n\r\n\r\n### Reproduction\r\n\r\n1. git clone https://github.com/ChaiMayor/hview-ui.git\r\n2. git checkout dev\r\n3. pnpm i\r\n4. pnpm run docs:build\r\n> run pnpm run docs:build from the project root or go to the site directory and run pnpm run docs:build\r\n\r\n### Expected behavior\r\n\r\nPackaging projects to site/docs /. Vitepress/dist\r\n \r\n\r\n### System Info\r\n\r\n```shell\r\nUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n\r\n\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2952],{"name":2885,"color":2886},1863,"alpha.43: The build project failed with a message Named export 'cloneDeep' not found. ","2023-02-07T00:04:16Z","https://github.com/vuejs/vitepress/issues/1863",0.7491344,{"description":2959,"labels":2960,"number":2962,"owner":2874,"repository":2875,"state":2888,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\nIf we have a multilingual project the path inside the href attribute for logo element doesn't change!\r\nFor example if I try to change from italian to english I have always: ` href=\"/\"` when I expect to find `href=\"/en/`\r\nFor Vuepress V2 we have the [\"home\" settings](https://v2.vuepress.vuejs.org/reference/default-theme/config.html#home) . But for Vitepress?\r\n\n\n### Reproduction\n\n1) Create a multilingual project.\r\n2) Click on the logo link\n\n### Expected behavior\n\nRedirect to the respective locale.\n\n### System Info\n\n```shell\nMacbook Pro M2, Chrome\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2961],{"name":2885,"color":2886},1682,"Locale Config: Specify the path of the homepage on the logo","2023-01-26T00:04:06Z","https://github.com/vuejs/vitepress/issues/1682",0.75004274,["Reactive",2968],{},["Set"],["ShallowReactive",2971],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fm04vfe-z1nT2J_SNNLUI3qyhN3XuYGfDlvt5VnBe_ys":-1},"/vuejs/vitepress/1860"]