From 6624bb748610079b88e2dcef7ea1810833a54a85 Mon Sep 17 00:00:00 2001 From: Pim Schreurs Date: Wed, 7 Feb 2024 18:45:29 +0100 Subject: [PATCH] fix: make local search work in combination with vue-i18n (#3559) --- .../components/VPLocalSearchBox.vue | 24 +++++++++---------- .../components/VPNavBarSearchButton.vue | 6 ++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/client/theme-default/components/VPLocalSearchBox.vue b/src/client/theme-default/components/VPLocalSearchBox.vue index 36eeb84d..ee979f94 100644 --- a/src/client/theme-default/components/VPLocalSearchBox.vue +++ b/src/client/theme-default/components/VPLocalSearchBox.vue @@ -362,7 +362,7 @@ const defaultTranslations: { modal: ModalTranslations } = { } } -const $t = createSearchTranslate(defaultTranslations) +const translate = createSearchTranslate(defaultTranslations) // Back @@ -452,7 +452,7 @@ function formMarkRegex(terms: Set) {
diff --git a/src/client/theme-default/components/VPNavBarSearchButton.vue b/src/client/theme-default/components/VPNavBarSearchButton.vue index 2c943363..baf06b06 100644 --- a/src/client/theme-default/components/VPNavBarSearchButton.vue +++ b/src/client/theme-default/components/VPNavBarSearchButton.vue @@ -10,11 +10,11 @@ const defaultTranslations: { button: ButtonTranslations } = { } } -const $t = createSearchTranslate(defaultTranslations) +const translate = createSearchTranslate(defaultTranslations)