mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
fix: update placeholder text in SearchBox to use translation function
This commit is contained in:
@@ -4,7 +4,12 @@
|
|||||||
<InputText
|
<InputText
|
||||||
ref="input"
|
ref="input"
|
||||||
v-model="searchQuery"
|
v-model="searchQuery"
|
||||||
:placeholder="placeHolder || 'Search...'"
|
:aria-label="
|
||||||
|
placeHolder || t('templateWidgets.sort.searchPlaceholder', 'Search...')
|
||||||
|
"
|
||||||
|
:placeholder="
|
||||||
|
placeHolder || t('templateWidgets.sort.searchPlaceholder', 'Search...')
|
||||||
|
"
|
||||||
type="text"
|
type="text"
|
||||||
unstyled
|
unstyled
|
||||||
:class="inputStyle"
|
:class="inputStyle"
|
||||||
@@ -16,6 +21,7 @@
|
|||||||
import InputText from 'primevue/inputtext'
|
import InputText from 'primevue/inputtext'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
|
import { t } from '@/i18n'
|
||||||
import { cn } from '@/utils/tailwindUtil'
|
import { cn } from '@/utils/tailwindUtil'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -989,7 +989,8 @@
|
|||||||
"sort": {
|
"sort": {
|
||||||
"recommended": "Recommended",
|
"recommended": "Recommended",
|
||||||
"alphabetical": "A → Z",
|
"alphabetical": "A → Z",
|
||||||
"newest": "Newest"
|
"newest": "Newest",
|
||||||
|
"searchPlaceholder": "Search..."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"graphCanvasMenu": {
|
"graphCanvasMenu": {
|
||||||
|
|||||||
Reference in New Issue
Block a user