Skip to content

Commit 37307d5

Browse files
committed
fix: address i18n issues in ModeSelector search functionality
- Replace hardcoded 'Search modes...' placeholder with t('common:ui.search_placeholder') - Replace settings namespace usage with hardcoded 'No results found' to match SelectDropdown pattern - Ensures proper internationalization and consistent namespace usage
1 parent d401963 commit 37307d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webview-ui/src/components/chat/ModeSelector.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const ModeSelector = ({
155155
ref={searchInputRef}
156156
value={searchValue}
157157
onChange={(e) => setSearchValue(e.target.value)}
158-
placeholder="Search modes..."
158+
placeholder={t("common:ui.search_placeholder")}
159159
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"
160160
data-testid="mode-search-input"
161161
/>
@@ -172,9 +172,7 @@ export const ModeSelector = ({
172172
{/* Mode List */}
173173
<div className="max-h-[300px] overflow-y-auto">
174174
{filteredModes.length === 0 && searchValue ? (
175-
<div className="py-2 px-3 text-sm text-vscode-foreground/70">
176-
{t("settings:modelPicker.noMatchFound")}
177-
</div>
175+
<div className="py-2 px-3 text-sm text-vscode-foreground/70">No results found</div>
178176
) : (
179177
<div className="py-1">
180178
{filteredModes.map((mode) => (

0 commit comments

Comments
 (0)