Skip to content

A local-first personal finance app

Fix translation issue #6828 (#6845)

Nam5388a115e9e0
diff --git a/packages/desktop-client/src/components/reports/reports/MissingReportCard.tsx b/packages/desktop-client/src/components/reports/reports/MissingReportCard.tsx
index 99818e3019..7d9553473b 100644
--- a/packages/desktop-client/src/components/reports/reports/MissingReportCard.tsx
+++ b/packages/desktop-client/src/components/reports/reports/MissingReportCard.tsx
@@ -1,4 +1,5 @@
import React, { type ReactNode } from 'react';
+import { useTranslation } from 'react-i18next';
import { View } from '@actual-app/components/view';
@@ -15,13 +16,15 @@ export function MissingReportCard({
onRemove,
children,
}: MissingReportCardProps) {
+ const { t } = useTranslation();
+
return (
<ReportCard
isEditing={isEditing}
menuItems={[
{
name: 'remove',
- text: 'Remove',
+ text: t('Remove'),
},
]}
onMenuSelect={item => {
diff --git a/upcoming-release-notes/6845.md b/upcoming-release-notes/6845.md
new file mode 100644
index 0000000000..c548d666b7
--- /dev/null
+++ b/upcoming-release-notes/6845.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [namos2502]
+---
+
+Fixing Widget Delete button translation issue