Skip to content

Commit 269e468

Browse files
authored
i18n node searchbox placeholder (#561)
1 parent c3ef716 commit 269e468

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/searchbox/NodeSearchBox.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ import { type FilterAndValue } from '@/services/nodeSearchService'
6666
import NodePreview from '@/components/node/NodePreview.vue'
6767
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
6868
import { useSettingStore } from '@/stores/settingStore'
69+
import { useI18n } from 'vue-i18n'
6970
7071
const settingStore = useSettingStore()
72+
const { t } = useI18n()
73+
7174
const enableNodePreview = computed(() =>
7275
settingStore.get('Comfy.NodeSearchBoxImpl.NodePreview')
7376
)
@@ -90,7 +93,7 @@ const suggestions = ref<ComfyNodeDefImpl[]>([])
9093
const hoveredSuggestion = ref<ComfyNodeDefImpl | null>(null)
9194
const currentQuery = ref('')
9295
const placeholder = computed(() => {
93-
return props.filters.length === 0 ? 'Search for nodes' : ''
96+
return props.filters.length === 0 ? t('searchNodes') + '...' : ''
9497
})
9598
9699
const search = (query: string) => {

0 commit comments

Comments
 (0)