From dce587440012bcd29936f8767efb1cb3b715a6c5 Mon Sep 17 00:00:00 2001 From: toki Date: Thu, 19 Mar 2026 07:47:42 +0900 Subject: [PATCH] =?UTF-8?q?log=20level=20=3D=20error=20=EC=88=98=EC=A4=80?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EA=B5=90=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/context/user_locale/index.tsx | 12 ++++++++++++ index.ts | 3 +++ 2 files changed, 15 insertions(+) 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}`);