From 50111114eb8254fe4d6fc15e9781f2c47e3db74a Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 24 七月 2024 00:12:52 +0800
Subject: [PATCH] 删除工艺路线绑定

---
 src/hooks/web/useI18n.ts |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/hooks/web/useI18n.ts b/src/hooks/web/useI18n.ts
index 3e54829..6626af1 100644
--- a/src/hooks/web/useI18n.ts
+++ b/src/hooks/web/useI18n.ts
@@ -1,4 +1,12 @@
-import { i18n } from '/@/locales/setupI18n';
+/*
+ * @Description: file content
+ * @Author: Ben Lin
+ * @version:
+ * @Date: 2024-06-18 15:09:47
+ * @LastEditors: Ben Lin
+ * @LastEditTime: 2024-07-17 03:58:09
+ */
+import { i18n } from '@/locales/setupI18n';
 import { isObject, isString } from '/@/utils/is';
 
 type I18nGlobalTranslation = {
@@ -8,11 +16,9 @@
   (key: string, locale: string, named: Record<string, unknown>): string;
   (key: string, list: unknown[]): string;
   (key: string, named: Record<string, unknown>): string;
-  (locale: TigerLocale): string;
 };
 
 type TigerLocale = { Key: string; Args: unknown[] };
-
 type I18nTranslationRestParameters = [string, any];
 
 function getKey(namespace: string | undefined, key: string) {
@@ -52,6 +58,7 @@
     if (isString(key)) {
       if (!key) return '';
       if (!key.includes('.') && !namespace) return key;
+
       return t(getKey(namespace, key), ...(arg as I18nTranslationRestParameters));
     } else if (isObject(key)) {
       if (!key) return '';

--
Gitblit v1.9.3