diff --git a/src/client/theme-default/components/VPLocalSearchBox.vue b/src/client/theme-default/components/VPLocalSearchBox.vue index 24dac640284e..2f49250cae6b 100644 --- a/src/client/theme-default/components/VPLocalSearchBox.vue +++ b/src/client/theme-default/components/VPLocalSearchBox.vue @@ -4,7 +4,6 @@ import { computedAsync, debouncedWatch, onKeyStroke, - reactify, useEventListener, useLocalStorage, useScrollLock, @@ -23,7 +22,6 @@ import { onMounted, ref, shallowRef, - toRef, watch, watchEffect, type Ref @@ -32,7 +30,7 @@ import type { ModalTranslations } from '../../../../types/local-search' import { pathToFile } from '../../app/utils' import { useData } from '../composables/data' import { LRUCache } from '../support/lru' -import { createTranslate } from '../support/translation' +import { createSearchTranslate } from '../support/translation' const emit = defineEmits<{ (e: 'close'): void @@ -361,10 +359,7 @@ const defaultTranslations: { modal: ModalTranslations } = { } } -const $t = reactify(createTranslate)( - toRef(() => theme.value.search?.options), - defaultTranslations -) +const $t = createSearchTranslate(defaultTranslations) // Back diff --git a/src/client/theme-default/components/VPNavBarSearchButton.vue b/src/client/theme-default/components/VPNavBarSearchButton.vue index a53e5a0155a5..2c9433634246 100644 --- a/src/client/theme-default/components/VPNavBarSearchButton.vue +++ b/src/client/theme-default/components/VPNavBarSearchButton.vue @@ -1,11 +1,6 @@