Skip to content

Commit 767faad

Browse files
committed
Remove focus output and translate placeholder
1 parent 8d89f89 commit 767faad

File tree

16 files changed

+49
-2
lines changed

16 files changed

+49
-2
lines changed

webview-ui/src/components/ui/select-dropdown.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from "react"
22
import { CaretUpIcon } from "@radix-ui/react-icons"
33
import { Check, X } from "lucide-react"
44
import { Fzf } from "fzf"
5+
import { useTranslation } from "react-i18next"
56

67
import { cn } from "@/lib/utils"
78
import { useRooPortal } from "./hooks/useRooPortal"
@@ -58,6 +59,7 @@ export const SelectDropdown = React.memo(
5859
},
5960
ref,
6061
) => {
62+
const { t } = useTranslation()
6163
const [open, setOpen] = React.useState(false)
6264
const [searchValue, setSearchValue] = React.useState("")
6365
const searchInputRef = React.useRef<HTMLInputElement>(null)
@@ -212,8 +214,8 @@ export const SelectDropdown = React.memo(
212214
ref={searchInputRef}
213215
value={searchValue}
214216
onChange={(e) => setSearchValue(e.target.value)}
215-
placeholder="Search..."
216-
className="w-full h-8 px-2 py-1 text-xs bg-vscode-input-background text-vscode-input-foreground border border-vscode-input-border rounded focus:outline-none focus:border-vscode-focusBorder"
217+
placeholder={t("common:ui.search_placeholder")}
218+
className="w-full h-8 px-2 py-1 text-xs bg-vscode-input-background text-vscode-input-foreground border border-vscode-input-border rounded focus:outline-0"
217219
/>
218220
{searchValue.length > 0 && (
219221
<div className="absolute right-4 top-0 bottom-0 flex items-center justify-center">

webview-ui/src/i18n/locales/ca/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "Cerca..."
69
}
710
}

webview-ui/src/i18n/locales/de/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "Suchen..."
69
}
710
}

webview-ui/src/i18n/locales/en/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "Search..."
69
}
710
}

webview-ui/src/i18n/locales/es/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "Buscar..."
69
}
710
}

webview-ui/src/i18n/locales/fr/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "Rechercher..."
69
}
710
}

webview-ui/src/i18n/locales/hi/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "खोजें..."
69
}
710
}

webview-ui/src/i18n/locales/it/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "Cerca..."
69
}
710
}

webview-ui/src/i18n/locales/ja/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "検索..."
69
}
710
}

webview-ui/src/i18n/locales/ko/common.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"thousand_suffix": "k",
44
"million_suffix": "m",
55
"billion_suffix": "b"
6+
},
7+
"ui": {
8+
"search_placeholder": "검색..."
69
}
710
}

0 commit comments

Comments
 (0)