فهرست منبع

feat(i18n): add translations for "The Unified" and "LLM API Gateway" in English, French, Japanese, and Russian

CaIon 4 ماه پیش
والد
کامیت
f1ac5606ee
5فایلهای تغییر یافته به همراه17 افزوده شده و 17 حذف شده
  1. 3 1
      web/src/i18n/locales/en.json
  2. 3 1
      web/src/i18n/locales/fr.json
  3. 3 1
      web/src/i18n/locales/ja.json
  4. 3 1
      web/src/i18n/locales/ru.json
  5. 5 13
      web/src/pages/Home/index.jsx

+ 3 - 1
web/src/i18n/locales/en.json

@@ -2100,6 +2100,8 @@
     "例如:4.99": "e.g.: 4.99",
     "例如:100000": "e.g.: 100000",
     "请填写完整的产品信息": "Please fill in complete product information",
-    "产品ID已存在": "Product ID already exists"
+    "产品ID已存在": "Product ID already exists",
+    "统一的": "The Unified",
+    "大模型接口网关": "LLM API Gateway"
   }
 }

+ 3 - 1
web/src/i18n/locales/fr.json

@@ -2080,6 +2080,8 @@
     "默认区域,如: us-central1": "Région par défaut, ex: us-central1",
     "默认折叠侧边栏": "Réduire la barre latérale par défaut",
     "默认测试模型": "Modèle de test par défaut",
-    "默认补全倍率": "Taux de complétion par défaut"
+    "默认补全倍率": "Taux de complétion par défaut",
+    "统一的": "La Passerelle",
+    "大模型接口网关": "API LLM Unifiée"
   }
 }

+ 3 - 1
web/src/i18n/locales/ja.json

@@ -2071,6 +2071,8 @@
     "默认区域,如: us-central1": "デフォルトリージョン(例:us-central1)",
     "默认折叠侧边栏": "サイドバーをデフォルトで折りたたむ",
     "默认测试模型": "デフォルトテストモデル",
-    "默认补全倍率": "デフォルト補完倍率"
+    "默认补全倍率": "デフォルト補完倍率",
+    "统一的": "統合型",
+    "大模型接口网关": "LLM APIゲートウェイ"
   }
 }

+ 3 - 1
web/src/i18n/locales/ru.json

@@ -2089,6 +2089,8 @@
     "默认区域,如: us-central1": "Регион по умолчанию, например: us-central1",
     "默认折叠侧边栏": "Сворачивать боковую панель по умолчанию",
     "默认测试模型": "Модель для тестирования по умолчанию",
-    "默认补全倍率": "Коэффициент вывода по умолчанию"
+    "默认补全倍率": "Коэффициент вывода по умолчанию",
+    "统一的": "Единый",
+    "大模型接口网关": "Шлюз API LLM"
   }
 }

+ 5 - 13
web/src/pages/Home/index.jsx

@@ -169,19 +169,11 @@ const Home = () => {
                   <h1
                     className={`text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-bold text-semi-color-text-0 leading-tight ${isChinese ? 'tracking-wide md:tracking-wider' : ''}`}
                   >
-                    {i18n.language === 'en' ? (
-                      <>
-                        The Unified
-                        <br />
-                        <span className='shine-text'>LLMs API Gateway</span>
-                      </>
-                    ) : (
-                      <>
-                        统一的
-                        <br />
-                        <span className='shine-text'>大模型接口网关</span>
-                      </>
-                    )}
+                    <>
+                      {t('统一的')}
+                      <br />
+                      <span className='shine-text'>{t('大模型接口网关')}</span>
+                    </>
                   </h1>
                   <p className='text-base md:text-lg lg:text-xl text-semi-color-text-1 mt-4 md:mt-6 max-w-xl'>
                     {t('更好的价格,更好的稳定性,只需要将模型基址替换为:')}