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 @@
diff --git a/src/client/theme-default/support/translation.ts b/src/client/theme-default/support/translation.ts
index 607d5db3c118..12ade37b6e3f 100644
--- a/src/client/theme-default/support/translation.ts
+++ b/src/client/theme-default/support/translation.ts
@@ -3,14 +3,14 @@ import { useData } from '../composables/data'
/**
* @param themeObject Can be an object with `translations` and `locales` properties
*/
-export function createTranslate(
- themeObject: any,
+export function createSearchTranslate(
defaultTranslations: Record
): (key: string) => string {
- const { localeIndex } = useData()
+ const { localeIndex, theme } = useData()
function translate(key: string): string {
const keyPath = key.split('.')
+ const themeObject = theme.value.search?.options
const isObject = themeObject && typeof themeObject === 'object'
const locales =