From 9135deed801c06653dc41d3f2219a9130cfa3e7b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 24 Sep 2026 19:25:11 +0200 Subject: [PATCH] fix: translate the no-subject fallback in mail lists and notifications The mail list, the unified inbox, a contact's recent emails and new-mail notifications showed a hard-coded English "(no subject)". They now use the webmail's `email_viewer.no_subject` (and `contacts.activity.no_subject` for the contact view). The notification task reads the in-app language override itself, as it cannot use the locale store. --- src/components/contacts/ContactActivity.tsx | 4 ++- .../__tests__/push-background-task.test.ts | 29 +++++++++++++++++++ src/lib/push-background-task.ts | 16 +++++++++- src/screens/EmailListScreen.tsx | 2 +- src/screens/UnifiedInboxScreen.tsx | 2 +- 5 files changed, 49 insertions(+), 4 deletions(-) diff --git a/src/components/contacts/ContactActivity.tsx b/src/components/contacts/ContactActivity.tsx index b07ea2f6..5792b015 100644 --- a/src/components/contacts/ContactActivity.tsx +++ b/src/components/contacts/ContactActivity.tsx @@ -9,6 +9,7 @@ import type { RootStackParamList } from '../../navigation/types'; import { getEmails, queryEmailsByFilter } from '../../api/email'; import { getEvents, queryEvents } from '../../api/calendar'; import { useCalendarStore } from '../../stores/calendar-store'; +import { useLocaleStore } from '../../stores/locale-store'; import { getEventColor } from '../../lib/calendar-utils'; import { hasCalendarCapability } from '../../lib/capabilities'; import SenderAvatar from '../SenderAvatar'; @@ -90,6 +91,7 @@ export function ContactActivity({ contact }: Props) { const c = useColors(); const styles = React.useMemo(() => makeStyles(c), [c]); const navigation = useNavigation