Explorar o código

feat: 接入翻译平台JSON

gemercheung hai 1 ano
pai
achega
2d0528deed

+ 63 - 63
packages/qjkankan-kankan-view/src/locales/en.json

@@ -1,64 +1,64 @@
 {
-  "common": {
-    "none": "None",
-    "confirm": "Confirm",
-    "cancel": "Cancel",
-    "tips": "Tips",
-    "hide": "Hide",
-    "show": "Show",
-    "review": "Preview",
-    "open": "Open",
-    "close": "Close",
-    "pauseTour": "Pause",
-    "playTour": "Play",
-    "passwordTips": "Please enter the password",
-    "passwordError": "Incorrect Password",
-    "tour": "Tour Planner",
-    "support": "4Dage provides technical support",
-    "all": "All",
-    "model": "Dollhouse"
-  },
-  "limit": {
-    "viewInVr": "Please use your phone to view the VR effect on the Web Interface."
-  },
-  "share": {
-    "wechat": "WeChat",
-    "friends": "Moments",
-    "qq": "QQ",
-    "facebook": "Facebook",
-    "whatsApp": "WhatsApp",
-    "copyLink": "Copy Link",
-    "shareLink": "Share Link",
-    "shareLinkTips": "Share with your friends",
-    "vrMode": "VR Mode",
-    "fastCopy": "One-click Copy"
-  },
-  "toast": {
-    "copySuccess": "Successfully copied",
-    "inputPassword": "Please enter the passward",
-    "checkBrowser": "Please update or change your browser and try to open the page again.",
-    "changeBrowser": "It is recommended to use the following Web Browser "
-  },
-  "mode": {
-    "panorama": "Panorama",
-    "floorplan": "Floorplan",
-    "dollhouse": "Dollhouse",
-    "dollhouseModel": "Dollhouse",
-    "vr": "Features",
-    "music": "Music",
-    "fullScene": "Full Screen",
-    "exitFullScene": "Full Screen"
-  },
-  "model": {
-    "enter": "Main Door"
-  },
-  "guide": {
-    "title": "Operation Tips",
-    "pano": "Walk<br />Click to move",
-    "rotate": "Roam<br />Swipe the screen to roam the screen to roam",
-    "zoom": "Zoom<br />Zoom in or out",
-    "set": "Got it",
-    "no_scene": "The scene is not found"
-  },
-  "code": "System is busy, please try again later."
-}
+    "common": {
+        "none": "None",
+        "confirm": "Confirm",
+        "cancel": "Cancel",
+        "tips": "Tips",
+        "hide": "Hide",
+        "show": "Display",
+        "review": "Preview",
+        "open": "Open",
+        "close": "Close",
+        "pauseTour": "Pause",
+        "playTour": "Play",
+        "passwordTips": "Please enter the access code",
+        "passwordError": "Password incorrect",
+        "tour": "Tour Planner",
+        "support": "4Dage Offers Digital Solutions",
+        "all": "All",
+        "model": "3D Model"
+    },
+    "limit": {
+        "viewInVr": "Please use your phone to view the VR effect on the Web Interface."
+    },
+    "share": {
+        "wechat": "WeChat",
+        "friends": "Moments",
+        "qq": "QQ",
+        "facebook": "Facebook",
+        "whatsApp": "WhatsApp",
+        "copyLink": "Copy Link",
+        "shareLink": "Share Link",
+        "shareLinkTips": "Share with your friends",
+        "vrMode": "VR Mode",
+        "fastCopy": "One-click Copy"
+    },
+    "toast": {
+        "inputPassword": "Please enter the password",
+        "checkBrowser": "Please upgrade or change your browser, then reopen the page.",
+        "changeBrowser": "The following web browsers are recommended:",
+        "copySuccess": "Successfully copied"
+    },
+    "mode": {
+        "panorama": "Panorama",
+        "floorplan": "Floorplan",
+        "dollhouse": "Dollhouse",
+        "dollhouseModel": "Dollhouse",
+        "vr": "Features",
+        "music": "Music",
+        "fullScene": "Full Screen",
+        "exitFullScene": "Full Screen"
+    },
+    "code": "System is busy, please try again later.",
+    "model": {
+        "enter": "Main Door"
+    },
+    "guide": {
+        "title": "Operation Tips",
+        "pano": "Walk<br />Click to move",
+        "rotate": "Roam<br />Swipe the screen to roam the screen to roam",
+        "zoom": "Zoom<br />Zoom in or out",
+        "set": "Got it",
+        "no_scene": "The scene is not found"
+    }
+}

+ 63 - 63
packages/qjkankan-kankan-view/src/locales/zh.json

@@ -1,64 +1,64 @@
 {
-  "common": {
-    "none": "无",
-    "confirm": "确定",
-    "cancel": "取消",
-    "tips": "提示",
-    "hide": "隐藏",
-    "show": "显示",
-    "review": "预览",
-    "open": "开",
-    "close": "关",
-    "pauseTour": "暂停导览",
-    "playTour": "播放导览",
-    "passwordTips": "请输入浏览密码",
-    "passwordError": "密码错误",
-    "tour": "导览",
-    "support": "四维时代提供技术支持",
-    "all": "全部",
-    "model": "三维模式"
-  },
-  "limit": {
-    "viewInVr": "请在手机展示页面观看VR效果"
-  },
-  "share": {
-    "wechat": "微信",
-    "friends": "朋友圈",
-    "qq": "QQ",
-    "facebook": "Facebook",
-    "whatsApp": "WhatsApp",
-    "copyLink": "复制链接",
-    "shareLink": "分享链接",
-    "shareLinkTips": "分享链接给好友",
-    "vrMode": "VR模式",
-    "fastCopy": "一键复制"
-  },
-  "toast": {
-    "copySuccess": "场景链接复制成功",
-    "inputPassword": "请输入密码",
-    "checkBrowser": "无法打开页面,请升级或更换浏览器后重新打开",
-    "changeBrowser": "建议使用以下浏览器"
-  },
-  "mode": {
-    "panorama": "漫游",
-    "floorplan": "平面",
-    "dollhouse": "三维",
-    "dollhouseModel": "三维模型",
-    "vr": "VR功能",
-    "music": "音乐",
-    "fullScene": "全屏",
-    "exitFullScene": "退出全屏"
-  },
-  "code": "操作失败,请稍后再试",
-  "model": {
-    "enter": "入户门"
-  },
-  "guide": {
-    "title": "操作提示",
-    "pano": "行走<br />点击任意方向移动",
-    "rotate": "旋转视角<br />左右滑动屏幕,旋转视觉",
-    "zoom": "缩放<br />双指滑动放大或缩小视图",
-    "set": "我知道了",
-    "no_scene":"场景不存在"
-  }
-}
+    "common": {
+        "none": "无",
+        "confirm": "确定",
+        "cancel": "取消",
+        "tips": "提示",
+        "hide": "隐藏",
+        "show": "显示",
+        "review": "预览",
+        "open": "开",
+        "close": "关",
+        "pauseTour": "暂停导览",
+        "playTour": "播放导览",
+        "passwordTips": "请输入浏览密码",
+        "passwordError": "密码错误",
+        "tour": "导览",
+        "support": "四维时代提供技术支持",
+        "all": "全部",
+        "model": "三维模式"
+    },
+    "limit": {
+        "viewInVr": "请在手机展示页面观看VR效果"
+    },
+    "share": {
+        "wechat": "微信",
+        "friends": "朋友圈",
+        "qq": "QQ",
+        "facebook": "Facebook",
+        "whatsApp": "WhatsApp",
+        "copyLink": "复制链接",
+        "shareLink": "分享链接",
+        "shareLinkTips": "分享链接给好友",
+        "vrMode": "VR模式",
+        "fastCopy": "一键复制"
+    },
+    "toast": {
+        "copySuccess": "场景链接复制成功",
+        "inputPassword": "请输入密码",
+        "checkBrowser": "无法打开页面,请升级或更换浏览器后重新打开",
+        "changeBrowser": "建议使用以下浏览器"
+    },
+    "mode": {
+        "panorama": "漫游",
+        "floorplan": "平面",
+        "dollhouse": "三维",
+        "dollhouseModel": "三维模型",
+        "vr": "VR功能",
+        "music": "音乐",
+        "fullScene": "全屏",
+        "exitFullScene": "退出全屏"
+    },
+    "code": "操作失败,请稍后再试",
+    "model": {
+        "enter": "入户门"
+    },
+    "guide": {
+        "title": "操作提示",
+        "pano": "行走<br />点击任意方向移动",
+        "rotate": "旋转视角<br />左右滑动屏幕,旋转视觉",
+        "zoom": "缩放<br />双指滑动放大或缩小视图",
+        "set": "我知道了",
+        "no_scene": "场景不存在"
+    }
+}

+ 0 - 64
packages/qjkankan-kankan-view/src/weblate/en.json

@@ -1,64 +0,0 @@
-{
-    "common": {
-        "none": "None",
-        "confirm": "Confirm",
-        "cancel": "Cancel",
-        "tips": "Tips",
-        "hide": "Hide",
-        "show": "Display",
-        "review": "Preview",
-        "open": "Open",
-        "close": "Close",
-        "pauseTour": "Pause",
-        "playTour": "Play",
-        "passwordTips": "Please enter the access code",
-        "passwordError": "Password incorrect",
-        "tour": "Tour Planner",
-        "support": "4Dage Offers Digital Solutions",
-        "all": "All",
-        "model": "3D Model"
-    },
-    "limit": {
-        "viewInVr": "Please use your phone to view the VR effect on the Web Interface."
-    },
-    "share": {
-        "wechat": "WeChat",
-        "friends": "Moments",
-        "qq": "QQ",
-        "facebook": "Facebook",
-        "whatsApp": "WhatsApp",
-        "copyLink": "Copy Link",
-        "shareLink": "Share Link",
-        "shareLinkTips": "Share with your friends",
-        "vrMode": "VR Mode",
-        "fastCopy": "One-click Copy"
-    },
-    "toast": {
-        "inputPassword": "Please enter the password",
-        "checkBrowser": "Please upgrade or change your browser, then reopen the page.",
-        "changeBrowser": "The following web browsers are recommended:",
-        "copySuccess": "Successfully copied"
-    },
-    "mode": {
-        "panorama": "Panorama",
-        "floorplan": "Floorplan",
-        "dollhouse": "Dollhouse",
-        "dollhouseModel": "Dollhouse",
-        "vr": "Features",
-        "music": "Music",
-        "fullScene": "Full Screen",
-        "exitFullScene": "Full Screen"
-    },
-    "code": "System is busy, please try again later.",
-    "model": {
-        "enter": "Main Door"
-    },
-    "guide": {
-        "title": "Operation Tips",
-        "pano": "Walk<br />Click to move",
-        "rotate": "Roam<br />Swipe the screen to roam the screen to roam",
-        "zoom": "Zoom<br />Zoom in or out",
-        "set": "Got it",
-        "no_scene": "The scene is not found"
-    }
-}

+ 0 - 64
packages/qjkankan-kankan-view/src/weblate/zh.json

@@ -1,64 +0,0 @@
-{
-    "common": {
-        "none": "无",
-        "confirm": "确定",
-        "cancel": "取消",
-        "tips": "提示",
-        "hide": "隐藏",
-        "show": "显示",
-        "review": "预览",
-        "open": "开",
-        "close": "关",
-        "pauseTour": "暂停导览",
-        "playTour": "播放导览",
-        "passwordTips": "请输入浏览密码",
-        "passwordError": "密码错误",
-        "tour": "导览",
-        "support": "四维时代提供技术支持",
-        "all": "全部",
-        "model": "三维模式"
-    },
-    "limit": {
-        "viewInVr": "请在手机展示页面观看VR效果"
-    },
-    "share": {
-        "wechat": "微信",
-        "friends": "朋友圈",
-        "qq": "QQ",
-        "facebook": "Facebook",
-        "whatsApp": "WhatsApp",
-        "copyLink": "复制链接",
-        "shareLink": "分享链接",
-        "shareLinkTips": "分享链接给好友",
-        "vrMode": "VR模式",
-        "fastCopy": "一键复制"
-    },
-    "toast": {
-        "copySuccess": "场景链接复制成功",
-        "inputPassword": "请输入密码",
-        "checkBrowser": "无法打开页面,请升级或更换浏览器后重新打开",
-        "changeBrowser": "建议使用以下浏览器"
-    },
-    "mode": {
-        "panorama": "漫游",
-        "floorplan": "平面",
-        "dollhouse": "三维",
-        "dollhouseModel": "三维模型",
-        "vr": "VR功能",
-        "music": "音乐",
-        "fullScene": "全屏",
-        "exitFullScene": "退出全屏"
-    },
-    "code": "操作失败,请稍后再试",
-    "model": {
-        "enter": "入户门"
-    },
-    "guide": {
-        "title": "操作提示",
-        "pano": "行走<br />点击任意方向移动",
-        "rotate": "旋转视角<br />左右滑动屏幕,旋转视觉",
-        "zoom": "缩放<br />双指滑动放大或缩小视图",
-        "set": "我知道了",
-        "no_scene": "场景不存在"
-    }
-}

+ 2 - 2
translate.js

@@ -40,13 +40,13 @@ checkIfPhishing(
 // kankan_show zh
 checkIfPhishing(
   "http://192.168.0.163:8080/download/qjkankan/kankan_show/zh_Hans/",
-  "packages/qjkankan-kankan-view/src/weblate",
+  "packages/qjkankan-kankan-view/src/locales",
   "zh"
 );
 
 // kankan_show en
 checkIfPhishing(
   "http://192.168.0.163:8080/download/qjkankan/kankan_show/en/",
-  "packages/qjkankan-kankan-view/src/weblate",
+  "packages/qjkankan-kankan-view/src/locales",
   "en"
 );