summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorOlivi <[email protected]>2026-04-15 19:26:24 +0800
committerOlivi <[email protected]>2026-04-15 19:26:24 +0800
commitedf6c5cb65cbf103fb1848760595f5c381dac723 (patch)
treec7e2d98570fb82fd4789e4379f2e889fb9633770 /src/misc
parente48240ddf861466cb380fd7b6d6c29807234d8b2 (diff)
build(deps)!: update depends
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/i18n.ts4
1 files changed, 2 insertions, 2 deletions
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;
}