Skip to content

A local-first personal finance app

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

Dreptschar130f357babcf
diff --git a/packages/desktop-client/src/components/common/Search.tsx b/packages/desktop-client/src/components/common/Search.tsx
index 6f9c2c469f..38b99c20e3 100644
--- a/packages/desktop-client/src/components/common/Search.tsx
+++ b/packages/desktop-client/src/components/common/Search.tsx
@@ -1,4 +1,5 @@
import { type Ref } from 'react';
+import { useTranslation } from 'react-i18next';
import { SvgRemove, SvgSearchAlternate } from '../../icons/v2';
import { theme } from '../../style';
@@ -24,6 +25,7 @@ export function Search({
isInModal = false,
width = 250,
}: SearchProps) {
+ const { t } = useTranslation();
return (
<InputWithContent
inputRef={inputRef}
@@ -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 }}
diff --git a/upcoming-release-notes/3659.md b/upcoming-release-notes/3659.md
new file mode 100644
index 0000000000..21caeb7341
--- /dev/null
+++ b/upcoming-release-notes/3659.md
@@ -0,0 +1,5 @@
+---
+category: Enhancements
+authors: [Dreptschar]
+---
+Support translations in desktop-client/components/common/search