From f92ce9d4fae61a9109bfd9152cede95202ec857a Mon Sep 17 00:00:00 2001 From: GXG <936806643@qq.com> Date: Mon, 9 Dec 2024 15:10:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=84=E4=BB=B6=E6=B1=89=E5=8C=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 正确配置全局搜索小组件 --- docs/.vitepress/config.mts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index d230d6e..19e3d96 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -196,22 +196,29 @@ export default defineConfig({ provider: 'local', options: { locales: { - zh: { + root: { translations: { button: { buttonText: '搜索文档', - buttonAriaLabel: '搜索文档', + buttonAriaLabel: '搜索文档' }, modal: { - noResultsText: '无法找到相关结果', + displayDetails: '显示详情', resetButtonTitle: '清除查询条件', + backButtonTitle: '返回', + noResultsText: '无法找到相关结果', footer: { selectText: '选择', + selectKeyAriaLabel: '选择', navigateText: '切换', + navigateUpKeyAriaLabel: '切换', + navigateDownKeyAriaLabel: '切换', + closeText: '关闭', + closeKeyAriaLabel: '关闭' }, - }, - }, - }, + } + } + } }, }, },