Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation: desktop-client/src/components/common/search.tsx #3659

Merged
merged 2 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/desktop-client/src/components/common/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Ref } from 'react';
import { useTranslation } from 'react-i18next';

import { SvgRemove, SvgSearchAlternate } from '../../icons/v2';
import { theme } from '../../style';
Expand All @@ -24,6 +25,7 @@ export function Search({
isInModal = false,
width = 250,
}: SearchProps) {
const { t } = useTranslation();
return (
<InputWithContent
inputRef={inputRef}
Expand Down Expand Up @@ -55,7 +57,7 @@ export function Search({
}
rightContent={
value && (
<View title="Clear search term">
<View title={t('Clear search term')}>
<Button
variant="bare"
style={{ padding: 8 }}
Expand Down
5 changes: 5 additions & 0 deletions upcoming-release-notes/3659.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: Enhancements
authors: [Dreptschar]
---
Support translations in desktop-client/components/common/search