\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.",[2921],{"name":2922,"color":2923},"theme","0754FB",2021,"'Switch Language' Button does not have an accessible name","2023-03-16T00:04:26Z","https://github.com/vuejs/vitepress/issues/2021",0.76272625,{"description":2930,"labels":2931,"number":2932,"owner":2869,"repository":2870,"state":2891,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### Is your feature request related to a problem? Please describe.\n\nCurrent when we change the language then click the homepage button it won't redirect to the current language homepage. \r\nIt's redirect to the default home page.\r\neg. repo https://github.com/YunYouJun/hexo-theme-yun site https://yun.yunyoujun.cn/\r\nstep to reproduce\r\n1 change the current language\r\n2 click the homepage button\r\n\r\n\n\n### Describe the solution you'd like\n\nredirect the homepage according to current language when homepage button clicked\r\neg. when current language is English it should redirect to the English homepage, if it's Chinese,the homepage should be Chinese one.\n\n### Describe alternatives you've considered\n\n_No response_\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],967,"(i18n) redirect to the corresponding homepage of language","2023-01-21T14:30:13Z","https://github.com/vuejs/vitepress/issues/967",0.76814604,{"description":2938,"labels":2939,"number":2941,"owner":2869,"repository":2870,"state":2891,"title":2942,"updated_at":2943,"url":2944,"score":2945},"### Describe the bug\n\nThis is an issue with the Vitepress alpha version. We have some code blocks with line numbers enabled in markdown. It would appear that using the `copy to clipboard` button is also somehow grabbing the line numbers along with it. \n\n### Reproduction\n\nAttaching our docs link here: https://dev.fairdataihub.org/docs/README.html#tech-stack\r\nYou can click on the copy to clipboard button to try it out\n\n### Expected behavior\n\nOnly the code block content should be copied. \n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (20) x64 Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz\r\n Memory: 16.33 GB / 31.81 GB\r\n Binaries:\r\n Node: 16.14.2 - ~\\anaconda3\\envs\\nuxt-env\\node.EXE\r\n Yarn: 1.22.11 - ~\\anaconda3\\envs\\nuxt-env\\yarn.CMD\r\n npm: 8.12.2 - ~\\Desktop\\fairdataihub-docs\\node_modules\\.bin\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.37)\r\n Internet Explorer: 11.0.22000.120\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.4 => 1.0.0-alpha.4\r\n\r\nNot sure if these are correct since I'm on windows 11...\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.",[2940],{"name":2900,"color":2901},884,"Copy to clipboard feature also adding line numbers","2023-01-21T14:30:10Z","https://github.com/vuejs/vitepress/issues/884",0.7770127,{"description":2947,"labels":2948,"number":2950,"owner":2869,"repository":2870,"state":2891,"title":2951,"updated_at":2952,"url":2953,"score":2954},"Now that i18n is still been implemented, could this be reconsidered?\r\nhttps://github.com/vuejs/vuepress/issues/363#issue-321042383\r\n\r\nIt's very messy that the default language has not the same structure than the rest.\r\nIt would also be easier for using the same relative links to common assets in all languages.\r\n\r\nThanks\r\n\r\n\r\n",[2949],{"name":2900,"color":2901},291,"Default language on it's own directory like other languages","2023-01-25T00:04:23Z","https://github.com/vuejs/vitepress/issues/291",0.7824793,{"description":2956,"labels":2957,"number":2958,"owner":2869,"repository":2870,"state":2891,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Is your feature request related to a problem? Please describe.\n\n**SEO**\r\nFot better SEO, it would be nice to provide a translated target path in the language selector, i.e. from `welcome.html` to `de/willkommen.html`.\r\n\r\n**404 Not found**\r\nIs there no translated version of a page, e.g. no `de/welcome.html`, a 404 not found is returned.\n\n### Describe the solution you'd like\n\n**Define target page in frontmatter**\r\nAdditional section in frontmatter of each page, providing the target page, e.g.:\r\n```\r\n---\r\ntitle: Welcome\r\nlocales: {\r\n de: {\r\n link: \"/de/willkommen/\"\r\n },\r\n fr: {\r\n link: \"/fr/bienvenue/\"\r\n }\r\n}\r\n---\r\n```\r\n\r\n**Fallback against 404 errors**\r\nIs a page not defined, language selector should target the root of a particular language.\r\n\r\nThere was already a [discussion](https://github.com/vuejs/vitepress/discussions/2857) concerning this problem.\r\nI've implemented this feature locally, and I could provide a PR.\r\nIt would bring better SEO and UX. \r\nWhat do you think about it?\n\n### Describe alternatives you've considered\n\n_No response_\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.dev).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],3532,"Translate path in language selector, e.g. navigate from welcome.html to de/willkommen.html","2024-02-10T00:04:28Z","https://github.com/vuejs/vitepress/issues/3532",0.78301024,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fwuHgsUGLCm37T_sFiOUlcjZxt8_as_LkC7AYOJ_Swss":-1},"/vuejs/vitepress/4772"]