diff --git a/apps/admin/src/env.d.ts b/apps/admin/src/env.d.ts
deleted file mode 100644
index 3b80f9e..0000000
--- a/apps/admin/src/env.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-///
-declare const APP_VERSION: string
-declare const APP_NAME: string
diff --git a/apps/admin/src/types/i18next.d.ts b/apps/admin/src/types/i18next.d.ts
deleted file mode 100644
index 1f8f140..0000000
--- a/apps/admin/src/types/i18next.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import type { resources } from "@/i18n"
-
-declare module "i18next" {
- interface CustomTypeOptions {
- defaultNS: "common"
- resources: {
- common: typeof resources.en.common
- auth: typeof resources.en.auth
- forms: typeof resources.en.forms
- settings: typeof resources.en.settings
- navigation: typeof resources.en.navigation
- }
- }
-}
diff --git a/apps/admin/src/global.d.ts b/apps/admin/types/global.d.ts
similarity index 100%
rename from apps/admin/src/global.d.ts
rename to apps/admin/types/global.d.ts
diff --git a/apps/admin/types/i18next.d.ts b/apps/admin/types/i18next.d.ts
index 32bd658..8be1f97 100644
--- a/apps/admin/types/i18next.d.ts
+++ b/apps/admin/types/i18next.d.ts
@@ -1,19 +1,16 @@
-// import the original type declarations
import "i18next"
-// import all namespaces (for the default language, only)
-import type en from "@/i18n/locales/en.json"
-import type zhCN from "@/i18n/locales/zh-CN.json"
+import type { resources } from "@/i18n"
declare module "i18next" {
- // Extend CustomTypeOptions
interface CustomTypeOptions {
- // custom namespace type, if you changed it
- defaultNS: "en"
- // custom resources type
+ defaultNS: "common"
resources: {
- en: typeof en
- zhCN: typeof zhCN
+ common: typeof resources.en.common
+ auth: typeof resources.en.auth
+ forms: typeof resources.en.forms
+ settings: typeof resources.en.settings
+ navigation: typeof resources.en.navigation
}
}
}
diff --git a/apps/admin/types/vite-env.d.ts b/apps/admin/types/vite-env.d.ts
index e63f46b..91d5281 100644
--- a/apps/admin/types/vite-env.d.ts
+++ b/apps/admin/types/vite-env.d.ts
@@ -1,5 +1,8 @@
///
+declare const APP_VERSION: string
+declare const APP_NAME: string
+
interface ImportMetaEnv {
VITE_APP_NAME: string
VITE_WEB_URL: string