diff --git a/app/context/user_locale/index.tsx b/app/context/user_locale/index.tsx index c1b587701..90df626a3 100644 --- a/app/context/user_locale/index.tsx +++ b/app/context/user_locale/index.tsx @@ -12,6 +12,16 @@ import {observeCurrentUser} from '@queries/servers/user'; import type Database from '@nozbe/watermelondb/Database'; +// Suppress missing translation warnings in development +const onIntlError = (err: any) => { + if (__DEV__ && err.code === 'MISSING_TRANSLATION') { + // Silently ignore missing translations in dev mode + return; + } + // eslint-disable-next-line no-console + console.error(err); +}; + type Props = { locale: string; children: React.ReactNode; @@ -30,6 +40,7 @@ const UserLocaleProvider = ({locale, children}: Props) => { {children} @@ -44,6 +55,7 @@ export function withUserLocale(Component: Compone {}; + // Ignore all notifications if running e2e const isRunningE2e = RUNNING_E2E === 'true'; logInfo(`RUNNING_E2E: ${RUNNING_E2E}, isRunningE2e: ${isRunningE2e}`);