From edf6c5cb65cbf103fb1848760595f5c381dac723 Mon Sep 17 00:00:00 2001 From: Olivi <225673551+Olivi-9@users.noreply.github.com> Date: Wed, 15 Apr 2026 19:26:24 +0800 Subject: build(deps)!: update depends --- src/misc/i18n.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc') diff --git a/src/misc/i18n.ts b/src/misc/i18n.ts index 090f8df..c416e6c 100644 --- a/src/misc/i18n.ts +++ b/src/misc/i18n.ts @@ -18,7 +18,7 @@ i18next .use(initReactI18next) .use(LanguageDetector) .init({ - debug: process.env.NODE_ENV === 'development', + debug: import.meta.env.DEV, // resources, backend: { loadPath: '/__{{lng}}/{{ns}}.json', @@ -67,7 +67,7 @@ i18next }, }); -if (process.env.NODE_ENV === 'development') { +if (import.meta.env.DEV) { window.i18n = i18next; } -- cgit v1.3.1