Files
orca/mobile/app/notifications.tsx
T
OrcaWinandOrcaWin ccd0829e6f feat(mobile): localize app screens, settings, pairing and host lists (#35498)
Moves ~600 strings in the root screens, settings, pairing, onboarding, accounts,
agent history, diagnostics, connection status, home and host workspace lists to the
translation API, with all ten translations.

- Connection verdicts carry an explicit `dialing` flag instead of matching the
  "…" ending of an English label
- Update-failure copy and connection-path accessibility labels are built from data,
  not by editing translated text
- Workspace status names stay the host's labels, as on desktop; transport errors
  stay English
- The stale-key check keeps a plural family while any of its forms is referenced

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-28 18:03:37 -07:00

29 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { NotificationDisplayTest } from '../src/settings/notification-display-test'
import { NativeNotificationDeliverySettings } from '../src/settings/native-notification-delivery-settings'
import { useRouter } from 'expo-router'
import NotificationsScreen from '../src/settings/notification-settings-screen'
import { nativeNotificationSettingsOperations } from '../src/settings/native-notification-settings-operations'
import { useMobileTranslation } from '../src/i18n/use-mobile-translation'
export default function NativeNotificationsRoute() {
const t = useMobileTranslation()
const router = useRouter()
return (
<NotificationsScreen
operations={nativeNotificationSettingsOperations}
onBack={() => router.back()}
description={t(
'app.notifications.description',
'Get agent alerts even when the app is closed. Delivered through Orca’s push service and Apple or Google.'
)}
>
{(enabled) => (
<>
<NativeNotificationDeliverySettings enabled={enabled} />
<NotificationDisplayTest onTroubleshoot={() => router.push('/troubleshoot')} />
</>
)}
</NotificationsScreen>
)
}