From b54e02d98e42ae73071e3c01e59f12671d13d06a Mon Sep 17 00:00:00 2001
From: chengkun <chengkun@ishangstudy.com>
Date: Wed, 06 Aug 2025 17:03:57 +0800
Subject: [PATCH] 提交

---
 public/static/js/language/language.js |  103 +++++++++++++++++++++++++++++++--------------------
 1 files changed, 62 insertions(+), 41 deletions(-)

diff --git a/public/static/js/language/language.js b/public/static/js/language/language.js
index cb501a3..832617c 100644
--- a/public/static/js/language/language.js
+++ b/public/static/js/language/language.js
@@ -1,47 +1,68 @@
-var languages = {
+const messages = {
     'zh-cn': {
-        'supplier_info_title': '供应商信息',
-        'to_do_items': '待办事项',
-        'add': '添加',
-        'account_management': "账号管理",
-        'search': "搜索",
-        'supplier_management': "供应商管理",
-        'home_page': '首页',
-        'sign_out':"退出",
+        message: {
+            common: {
+                'contactUs': '联系我们',
+                'aboutUs': '关于我们',
+            },
+            header: {
+                'home': '首页',
+                'about': '关于',
+                'service': '服务',
+                'blog': '推文',
+                'partners': '合作伙伴',
+                'contact': '联系我们',
+            },
+            home: {
+                'text-1': "中国汉制造·南非共享",
+                'text-2': "青年创业孵化营",
+                'text-3': "产业带推广服务",
+                'text-4': "全链路推广,让南非消费者深度感知中国制造优势",
+                'text-5': "24/7 品牌直播推广服务",
+                'text-6': "双语团队在南非平台全天直播带货",
+                'text-7': "产教融合服务",
+                'text-8': "联动院校培养跨境电商人才,填补人才供需缺口",
+                'text-9': '搭建中国优质产品与南非市场的桥梁 —— ',
+                'text-10': '我们的业务',
+                'text-11': 'C Park 南非跨境电商产业园,依托股东武汉金融控股集团(注册资本 210 亿元人民币)及长江国际贸易集团(注册资本 8 亿元人民币),计划开拓南非消费市场。以下是预估的市场数据:',
+                'text-12': '产业带合作 10+ 条中国产业带',
+                'text-13': '合作工厂 100+ 家',
+                'text-14': '青少年孵化 1000+ 名青少年',
+
+            }
+        }
     },
     'en-us': {
-        'supplier_info_title': 'Supplier info',
-        'to_do_items': 'To do items',
-        'add': 'Add',
-        'account_management': "Account management",
-        'search': "Search",
-        'supplier_management': "Supplier management",
-        'home_page': 'Home page',
-        'sign_out':"Sign Out",
-    },
-};
-
-/////切换语言/////
-function switchLanguage(lang) {
-    switch_Lang(lang)
-    let url = "/supplier/login/setlang.html"
-    postRequest(url, { lang: lang }).then(res => {
-        if (res.data.code == 200) {
-            document.location.reload();
+        message: {
+            common: {
+                'contactUs': 'Contact Us',
+                'aboutUs': 'About Us',
+            },
+            header: {
+                'home': 'Home',
+                'about': 'About',
+                'service': 'Service',
+                'blog': 'Blog',
+                'partners': 'Partners',
+                'contact': 'Contact',
+            },
+            home: {
+                'text-1': "Made In China,Used In SA",
+                'text-2': "Youth Startup Incubation",
+                'text-3': "Comprehensive promotion",
+                'text-4': "connects Chinese manufacturing strengths with South African consumers",
+                'text-5': "24/7 Brand Live Streaming",
+                'text-6': "Bilingual teams run round - the - clock live sales on SA platforms",
+                'text-7': "Industry - Education ",
+                'text-8': "Integration Collaborate with schools to train cross - border e - commerce talents, bridging talent supply - demand gaps",
+                'text-9': "We Connect Chinese Quality to South Africa's Market - ",
+                'text-10': "What We Do",
+                'text-11': 'C Park South Africa Cross - border E-commerce Industrial Park, backed by its shareholders, Wuhan Financial Holdings Group (with a registered capital of 21 billion yuan) and Changjiang International Trade Group (with a registered capital of 8 billion yuan), plans to explore the South African consumer market. Here are the projected market figures:',
+                'text-12': 'Industrial Belt Cooperation 10+ Chinese industrial belts',
+                'text-13': 'Cooperative Factories 100+',
+                'text-14': 'Youth Incubation 1000+ youths',
+            }
         }
-    });
+    }
 }
-
-function switch_Lang(lang) {
-    $('[data-i18n]').each(function () {
-        var key = $(this).data('i18n');
-        $(this).text(languages[lang][key]);
-    });
-
-}
-
-$(function () {
-    var languageType = $("#languageType").val();
-    switch_Lang(languageType);
-});
 

--
Gitblit v1.9.0