diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index 6da4130..ea4fd16 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -51,7 +51,7 @@ export const shared = defineConfig({ socialLinks: [{ icon: 'github', link: 'https://github.com/Leetfs/study' }], search: { - provider: 'local', //改为algolia即为使用algolia搜索 + provider: 'local', //当前为本地搜索,改为algolia即为使用algolia搜索 //这里放密钥 options: { appId: '8J64VVRP8K', diff --git a/src/client/theme-default/components/VPLocalSearchBox.vue b/src/client/theme-default/components/VPLocalSearchBox.vue index c8aded4..29d47cc 100644 --- a/src/client/theme-default/components/VPLocalSearchBox.vue +++ b/src/client/theme-default/components/VPLocalSearchBox.vue @@ -342,18 +342,18 @@ onKeyStroke('Escape', () => { // Translations const defaultTranslations: { modal: ModalTranslations } = { modal: { - displayDetails: 'Display detailed list', - resetButtonTitle: 'Reset search', - backButtonTitle: 'Close search', - noResultsText: 'No results for', + displayDetails: '显示详细列表', + resetButtonTitle: '重置', + backButtonTitle: '关闭', + noResultsText: '未找到相关的结果', footer: { - selectText: 'to select', - selectKeyAriaLabel: 'enter', - navigateText: 'to navigate', - navigateUpKeyAriaLabel: 'up arrow', - navigateDownKeyAriaLabel: 'down arrow', - closeText: 'to close', - closeKeyAriaLabel: 'escape' + selectText: '选择', + selectKeyAriaLabel: '回车', + navigateText: '切换', + navigateUpKeyAriaLabel: '上箭头', + navigateDownKeyAriaLabel: '下箭头', + closeText: '关闭', + closeKeyAriaLabel: '退出' } } }