From 7d5ddd06817383e6807fe9d0329c9bf7fa14ca03 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 19 九月 2022 16:46:31 +0800 Subject: [PATCH] 1 --- src/assets/lang/zh.js | 120 +++++++----------------------- package.json | 3 src/assets/lang/en.js | 102 ++++++------------------- src/components/navMenu.vue | 8 +- 4 files changed, 56 insertions(+), 177 deletions(-) diff --git a/package.json b/package.json index 29c8f1d..80273b0 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,6 @@ "prettier": "^2.2.1", "vue-template-compiler": "^2.6.11" }, - "gitHooks": { - "pre-commit": "lint-staged" - }, "lint-staged": { "*.{js,jsx,vue}": [ "vue-cli-service lint", diff --git a/src/assets/lang/en.js b/src/assets/lang/en.js index 62a2163..3354efb 100644 --- a/src/assets/lang/en.js +++ b/src/assets/lang/en.js @@ -1,84 +1,30 @@ const en = { common: { - confirm: "confirm", - choose: "please choose", - emptydata: "No data", - Distributionmap: "Distribution map", - Selectdate: "Select date", - name: "Name", - high: "high", - Medium: "Medium", - low: "low", - reName: "rename", - edit: "edit", - copy: "copy", - delete: "delete", - location: "location", - coordinate: "coordinate", - latLon: "Latitude and Longitude", - pleaseEnter: "Please Enter...", + confirm: 'confirm', + choose: 'please choose', + emptydata: 'No data', + Distributionmap: 'Distribution map', + Selectdate: 'Select date', + name: 'Name', + high: 'high', + Medium: 'Medium', + low: 'low', + reName: 'rename', + edit: 'edit', + copy: 'copy', + delete: 'delete', + location: 'location', + coordinate: 'coordinate', + latLon: 'Latitude and Longitude', + pleaseEnter: 'Please Enter...', }, - nav: { - SerManage: "DUTY MANAGEMENT", - digitalMap: "DIGITALMAP", - PerManage: "MAN-MANAGEMENT", - EquManage: "EQUIPMENT MANAGEMENT", - NewsSite: "NEWS SITE", - Logout: "Logout", - Newtask: "Newtask", - Tasklist: "Tasklist", - Tasksummary: "Tasksummary", - Distributionlist: "Distributionlist", - MaterialManage: "Material management", - LivingMaterials: "Living materials", - EquipmentMaterials: "Equipment materials", - }, - taskList: { - Listregions: "List of regions", - EnterAreaName: "Please enter the area name", - taskTotal: "Total number of tasks statistics", - Tasklevel: "Task risk level statistics", - addTaskArea: "New task area", - editTaskArea: "Edit task area", - DegreeDanger: "Degree of danger", - Introduction: "Introduction", - }, - addTask: { - newTask: "New task", - Details: "Details", - taskName: "Task name", - taskId: "Task number", - getTime: "Receiving time", - taskcon: "Task content", - resoucepai: "Resource allocation", - lifesub: "Living matter", - equisub: "Equipment material", - people: "personnel", - collmodel: "Collection template", - doIssued: "Confirm to issue", - storage: "Temporary storage", - }, - electronicMap: { - customMap: "Custom Map", - mapAnalyse: "Map Analyse", - mapPlotting: "Map Plotting", - layerData: "Layer Data", - peripheralQuery: "Peripheral query", - text: "text", - polyline: "Polyline", - modelLibrary: "Model Library", - polygon: "Polygon", - militaryLibrary: "Military Standard Library", - flattailarrow: "Flat tail arrow", - dovetailarrow: "Dovetail arrow", - assemblyPlace: "Assembly place", - car: "car", - rocketlauncher: "Rocket launcher", - missile: "missile", - rectangle: "Rounded Rectangle", - sector: "sector", - arched: "Arched", - bezierarrow: "Bezier Arrow", + synthesis: { + //缁煎悎灞曠ず + synthesis: 'Comprehensive Display', + //涓撻鍦板浘 + themaic: 'Thematic Maps', + //璧勬枡棣� + archive: 'Data Library', }, }; diff --git a/src/assets/lang/zh.js b/src/assets/lang/zh.js index 5083c76..5c9d86c 100644 --- a/src/assets/lang/zh.js +++ b/src/assets/lang/zh.js @@ -1,98 +1,34 @@ const zh = { common: { - confirm: "纭", - choose: "璇烽�夋嫨", - emptydata: "鏆傛棤鏁版嵁", - name: "鍚嶇О", - Distributionmap: "閰嶅彂鍦板浘", - lon: "缁忓害鍧愭爣", - lat: "绾害鍧愭爣", - Selectdate: "閫夋嫨鏃ユ湡", - high: "楂�", - Medium: "涓�", - low: "浣�", - reName: "閲嶅懡鍚�", - edit: "缂栬緫", - copy: "澶嶅埗", - delete: "鍒犻櫎", - location: "鍦板悕", - coordinate: "鍧愭爣", - latLon: "缁忕含搴�", - pleaseEnter: "璇疯緭鍏�...", - geocoding: "鍦扮悊缂栫爜", - reverseGeocoding: "閫嗗湴鐞嗙紪鐮�", + confirm: '纭', + choose: '璇烽�夋嫨', + emptydata: '鏆傛棤鏁版嵁', + name: '鍚嶇О', + Distributionmap: '閰嶅彂鍦板浘', + lon: '缁忓害鍧愭爣', + lat: '绾害鍧愭爣', + Selectdate: '閫夋嫨鏃ユ湡', + high: '楂�', + Medium: '涓�', + low: '浣�', + reName: '閲嶅懡鍚�', + edit: '缂栬緫', + copy: '澶嶅埗', + delete: '鍒犻櫎', + location: '鍦板悕', + coordinate: '鍧愭爣', + latLon: '缁忕含搴�', + pleaseEnter: '璇疯緭鍏�...', + geocoding: '鍦扮悊缂栫爜', + reverseGeocoding: '閫嗗湴鐞嗙紪鐮�', }, - nav: { - SerManage: "鍕ゅ姟绠$悊", - digitalMap: "鐢靛瓙鍦板浘", - PerManage: "浜哄憳绠$悊", - EquManage: "瑁呭绠$悊", - NewsSite: "鏂伴椈缃戠珯", - Logout: "娉ㄩ攢", - Newtask: "鏂板缓浠诲姟", - Tasklist: "浠诲姟娓呭崟", - Tasksummary: "浠诲姟鎬荤粨", - taskStatistic: "浠诲姟缁熻", - Distributionlist: "鐗╄祫鍛婅", - MaterialManage: "鐢熸椿鐗╄祫绠$悊", - EquipManage: "瑁呭鐗╄祫绠$悊", - LivingMaterials: "鐢熸椿鐗╄祫", - EquipmentMaterials: "瑁呭鐗╄祫", - system: "绯荤粺绠$悊", - personmanage: "浜哄憳绠$悊", - equiplable: "鏍囩搴撶鐞�", - }, - taskList: { - Listregions: "鍦板尯鍒楄〃", - EnterAreaName: "璇疯緭鍏ュ尯鍩熷悕绉�", - taskTotal: "浠诲姟鎬绘暟缁熻", - Tasklevel: "浠诲姟鍗遍櫓搴︾骇鍒粺璁�", - addTaskArea: "鏂板浠诲姟鍖�", - editTaskArea: "缂栬緫浠诲姟鍖�", - DegreeDanger: "鍗遍櫓绋嬪害", - Introduction: "绠�浠�", - }, - addTask: { - newTask: "鏂板缓浠诲姟", - taskLevel: "浠诲姟绾у埆", - Details: "璇︽儏", - taskName: "浠诲姟鍚嶇О", - taskId: "浠诲姟缂栧彿", - getTime: "鎺ユ姤鏃堕棿", - taskcon: "浠诲姟鍐呭", - resoucepai: "璧勬簮鍒嗛厤", - lifesub: "鐗╄祫", - equisub: "瑁呭", - people: "浜哄憳", - collmodel: "閲囬泦妯℃澘", - doIssued: "纭涓嬪彂", - storage: "鏆傚瓨", - }, - electronicMap: { - customMap: "鑷畾涔夊湴鍥�", - mapAnalyse: "鍦板浘鍒嗘瀽", - mapPlotting: "鍦板浘鏍囩粯", - layerData: "鍥惧眰鏁版嵁", - peripheralQuery: "鐩戞帶鏌ヨ", - text: "鏂囨湰", - polyline: "鎶樼嚎", - modelLibrary: "妯″瀷搴�", - polygon: "澶氳竟褰�", - militaryLibrary: "鍐涙爣搴�", - flattailarrow: "骞冲熬绠ご", - dovetailarrow: "鐕曞熬绠ご", - flattail2arrow: "骞冲熬鍙岀澶�", - assemblyPlace: "闆嗙粨鍦�", - car: "杞﹁締", - rocketlauncher: "鐏鍙戝皠鏋�", - missile: "瀵煎脊", - rectangle: "鍦嗚鐭╁舰", - sector: "鎵囧舰", - arched: "寮撳舰", - bezierarrow: "璐濆灏旂澶�", - mapImagery: "鍦板浘褰卞儚", - pointposition: "鐐逛綅", - electronicFence: "鐢靛瓙鍥存爮", + synthesis: { + //缁煎悎灞曠ず + synthesis: '缁煎悎灞曠ず', + //涓撻鍦板浘 + themaic: '涓撻鍦板浘', + //璧勬枡棣� + archive: '璧勬枡棣�', }, }; diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue index a96f107..dc2f88f 100644 --- a/src/components/navMenu.vue +++ b/src/components/navMenu.vue @@ -54,11 +54,11 @@ </el-submenu> <el-submenu index="3" class="faSub"> <template slot="title"> - <span>缁煎悎灞曠ず</span> + <span>{{ $t("synthesis.synthesis") }}</span> </template> - <el-menu-item index="Synthesis">缁煎悎灞曠ず</el-menu-item> - <el-menu-item index="Thematic">涓撻鍦板浘</el-menu-item> - <el-menu-item index="Archive">璧勬枡棣�</el-menu-item> + <el-menu-item index="Synthesis">{{ $t("synthesis.synthesis") }}</el-menu-item> + <el-menu-item index="Thematic">{{ $t("synthesis.themaic") }}</el-menu-item> + <el-menu-item index="Archive">{{ $t("synthesis.archive") }}</el-menu-item> </el-submenu> <!-- <el-submenu index="4" class="faSub"> <template slot="title">鏁版嵁璐ㄦ</template> -- Gitblit v1.9.3