Browse Source

添加lang

11wqe1 1 month ago
parent
commit
0f9990a983
4 changed files with 496 additions and 1 deletions
  1. 200 0
      src/lang/cn.json
  2. 134 0
      src/lang/en.json
  3. 133 0
      src/lang/hk.json
  4. 29 1
      src/main.js

+ 200 - 0
src/lang/cn.json

@@ -0,0 +1,200 @@
+{
+  "lang": "cn",
+  "courseManage": "课程管理",
+  "addCourse": "添加课程",
+  "return": "返回",
+  "pleaseEnterCourseName": "请输入课程名称",
+  "whetherPublicThisCourse": "是否公开此课程",
+  "type": "类型",
+  "uploadCover": "上传封面",
+  "clickAddCover": "点击添加封面",
+  "modifyCover": "修改封面",
+  "teachClass": "授课班级",
+  "pleaseSelectTeachClass": "请选择授课班级",
+  "collaboratePersonnel": "协同人员",
+  "pleaseSelectCollaboratePersonnel": "请选择协同人员",
+  "smartPaste": "智能粘贴",
+  "pasteMode": "智能粘贴模式",
+  "courseBriefDescription": "课程简要描述",
+  "task": "任务",
+  "unnamedTask": "未命名任务",
+  "tool": "工具",
+  "learnContent": "学习内容",
+  "pleaseAddLearnContent": "请添加学习内容",
+  "link": "链接",
+  "aiApp": "Ai应用",
+  "codeUpload": "代码上传",
+  "file": "文件",
+  "imageText": "图文",
+  "code": "代码",
+  "resource": "资源",
+  "smartApp": "智能应用",
+  "codeEditor": "代码编辑器",
+  "otherAttachment": "其他附件",
+  "uploadingPleaseWait": "上传中,请稍后",
+  "taskOverview": "任务概述",
+  "inputTaskName": "输入任务名称",
+  "pleaseEnterTaskDescription": "请输入任务描述",
+  "interact": "互动类",
+  "think": "思维类",
+  "collab": "协作类",
+  "assess": "测评类",
+  "eval": "评价类",
+  "program": "编程类",
+  "subject": "学科类",
+  "other": "其他",
+  "moveUp": "上移",
+  "moveDown": "下移",
+  "material": "素材库",
+  "learnData": "学习资料",
+  "countdown": "倒计时",
+  "pick": "挑人",
+  "stuGroup": "学生分组",
+  "interVideo": "交互视频",
+  "appCenter": "应用中心",
+  "thinkGrid": "思维网格",
+  "whiteboard": "电子白板",
+  "note": "便签",
+  "collabDoc": "协同文档",
+  "document": "文档",
+  "mindmap": "思维导图",
+  "table": "表格",
+  "rubric": "量规评分",
+  "survey": "问卷调查",
+  "choice": "选择题",
+  "qa": "问答",
+  "homework": "作业提交",
+  "batchUp": "批量上传",
+  "personal": "个人评价",
+  "match": "选择匹配",
+  "sort": "排序",
+  "uploadAud": "上传音频",
+  "trainPlat": "训练平台",
+  "aiExp": "AI体验",
+  "sourceEdit": "源码编辑",
+  "turtle": "海龟编程",
+  "aiAgent": "AI智能体",
+  "translate": "翻译",
+  "digital": "数字画板",
+  "formula": "公式编辑",
+  "selected": "已选择",
+  "addTool": "添加工具",
+  "addToolDesc": "添加工具描述",
+  "expandTask": "展开任务",
+  "collapseTask": "收起任务",
+  "addTask": "添加任务",
+  "returnCourse": "返回课程",
+  "confirmUp": "确认上传",
+  "uploadCont": "上传课程内容",
+  "courseDesign": "课程设计",
+  "targetMgmt": "目标管理",
+  "engWrite": "英语写作",
+  "engSpeak": "英语口语",
+  "selectTemplate": "请选择合适的课程模板",
+  "taskMode": "任务模式",
+  "simpleMode": "简易模式",
+  "stage": "阶段",
+  "Stage": "第*阶段",
+  "stageTitle": "阶段标题",
+  "taskName": "任务名称",
+  "taskDesc": "任务描述",
+  "addFile": "添加文件",
+  "addImgText": "添加图文",
+  "addLink": "添加链接",
+  "addResource": "添加资源",
+  "embedCode": "嵌入代码",
+  "teachDesign": "教学设计",
+  "teachCourse": "教学课件",
+  "teachVideo": "教学视频",
+  "teachAudio": "教学音频",
+  "learnSheet": "学习单",
+  "practice": "练习内容",
+  "evalContent": "评价内容",
+  "evalSet": "评价设置",
+  "evalName": "评价名称",
+  "fillEvalName": "填写评价名称",
+  "starLevel": "评星等级",
+  "evalDesc": "评价描述",
+  "fillEvalDesc": "填写评价描述",
+  "target": "目标",
+  "add": "添加",
+  "curTargetMgmt": "当前使用目标管理",
+  "switchMode": "切换模式",
+  "targetTree": "目标树",
+  "targetCompass": "目标罗盘",
+  "targetBoard": "目标看板",
+  "fold": "折叠",
+  "expand": "展开",
+  "stagePrefix": "第",
+  "magicBox": "魔盒识字",
+  "game24": "24点",
+  "mathBoard": "数学画板",
+  "simDrive": "模拟驾驶",
+  "pathSearch": "路径搜索",
+  "deepLearn": "深度学习",
+  "allHistory": "全历史",
+  "success": "成功",
+  "tip": "提示",
+  "copyLink": "复制链接分享",
+  "cancel": "取消",
+  "viewDoc": "查看文档",
+  "addDoc": "添加文档",
+  "docTitle": "文档标题",
+  "enterDocTitle": "请输入文档标题名",
+  "docIntro": "文档简介",
+  "docContent": "文档内容",
+  "modify": "修改",
+  "confirm": "确定",
+  "addRichText": "添加富文本",
+  "textTitle": "文本标题",
+  "enterTextTitle": "请输入文本标题",
+  "title": "标题",
+  "enterLinkTitle": "请输入链接标题",
+  "enterLink": "请输入链接",
+  "modifyRes": "修改资源",
+  "addMember": "添加课程成员",
+  "selectMem": "选择成员",
+  "searchMem": "搜索成员名称",
+  "noStudent": "暂无学生可选",
+  "copyLinkInvite": "请复制该链接邀请协同编辑",
+  "selectClass": "选择授课班级",
+  "all": "全部",
+  "selectClass2": "选择班级",
+  "checkAll": "全选",
+  "noData": "暂无数据",
+  "noName": "暂无姓名",
+  "addMember2": "添加协同成员",
+  "createSurvey": "创建问卷",
+  "enterTitle": "请输入标题",
+  "singleChoice": "单选题",
+  "multiChoice": "多选题",
+  "enterQuestion": "请输入题目",
+  "enterOption": "请输入选项",
+  "createChoice": "创建选择题",
+  "addQa": "添加问答",
+  "addQuestion": "添加问题",
+  "question": "问题",
+  "enterQuestion2": "请输入您要问的问题",
+  "enterAnswerQ": "请输入您想要回答的问题",
+  "uploadPic": "上传图片",
+  "selectLocal": "选择本地文件",
+  "selectNetwork": "选择网络文件",
+  "selectSystem": "选择系统文件",
+  "drawing": "绘画",
+  "technology": "科技",
+  "humanity": "人文",
+  "art": "艺术",
+  "searchPicKey": "搜索图片关键字",
+  "changeGroup": "换一组",
+  "enterKeySearch": "请输入关键词搜索图片",
+  "uploadQuesPic": "上传题目图片",
+  "tipUploadAll": "提示:请将所有题目上传为一张图片。",
+  "addOption": "添加选项",
+  "tipOptionShare": "提示:请输入以上题目的选项内容,此选项为所有题目共享。",
+  "setCorrect": "设置每道题目的正确选项",
+  "selectAnswer": "根据题目选择对应答案",
+  "selectCorrect": "请选择正确答案",
+  "nextStep": "下一步",
+  "prevStep": "上一步",
+  "delete": "删除"
+}

+ 134 - 0
src/lang/en.json

@@ -0,0 +1,134 @@
+{
+  "lang": "com",
+  "courseManage": "Course Management",
+  "addCourse": "Add Course",
+  "return": "Return",
+  "pleaseEnterCourseName": "Please enter course name",
+  "whetherPublicThisCourse": "Whether to make this course public",
+  "type": "Type",
+  "uploadCover": "Upload Cover",
+  "clickAddCover": "Click to add cover",
+  "modifyCover": "Modify Cover",
+  "teachClass": "Teaching Class",
+  "pleaseSelectTeachClass": "Please select teaching class",
+  "collaboratePersonnel": "Collaborative Personnel",
+  "pleaseSelectCollaboratePersonnel": "Please select collaborative personnel",
+  "smartPaste": "Smart Paste",
+  "courseBriefDescription": "Course Brief Description",
+  "task": "Task",
+  "unnamedTask": "Unnamed Task",
+  "tool": "Tool",
+  "learnContent": "Learning Content",
+  "pleaseAddLearnContent": "Please add learning content",
+  "link": "Link",
+  "aiApp": "AI App",
+  "codeUpload": "Code Upload",
+  "file": "File",
+  "imageText": "Image Text",
+  "code": "Code",
+  "resource": "Resource",
+  "smartApp": "Smart App",
+  "codeEditor": "Code Editor",
+  "otherAttachment": "Other Attachment",
+  "uploadingPleaseWait": "Uploading, please wait",
+  "taskOverview": "Task Overview",
+  "inputTaskName": "Input task name",
+  "pleaseEnterTaskDescription": "Please enter task description",
+  "interact": "Interactive",
+  "think": "Thinking",
+  "collab": "Collaborative",
+  "assess": "Assessment",
+  "eval": "Evaluation",
+  "program": "Programming",
+  "subject": "Subject",
+  "other": "Other",
+  "moveUp": "Move Up",
+  "moveDown": "Move Down",
+  "material": "Material Library",
+  "learnData": "Learning Materials",
+  "countdown": "Countdown",
+  "pick": "Pick Person",
+  "stuGroup": "Student Group",
+  "interVideo": "Interactive Video",
+  "appCenter": "App Center",
+  "thinkGrid": "Thinking Grid",
+  "whiteboard": "Whiteboard",
+  "note": "Note",
+  "collabDoc": "Collaborative Doc",
+  "document": "Document",
+  "mindmap": "Mind Map",
+  "table": "Table",
+  "rubric": "Rubric Score",
+  "survey": "Questionnaire",
+  "choice": "Choice Question",
+  "qa": "Q&A",
+  "homework": "Homework Submit",
+  "batchUp": "Batch Upload",
+  "personal": "Personal Eval",
+  "match": "Match",
+  "sort": "Sort",
+  "uploadAud": "Upload Audio",
+  "trainPlat": "Training Platform",
+  "aiExp": "AI Experience",
+  "sourceEdit": "Source Edit",
+  "turtle": "Turtle Program",
+  "aiAgent": "AI Agent",
+  "translate": "Translate",
+  "digital": "Digital Canvas",
+  "formula": "Formula Edit",
+  "selected": "Selected",
+  "addTool": "Add Tool",
+  "addToolDesc": "Add Tool Desc",
+  "expandTask": "Expand Task",
+  "collapseTask": "Collapse Task",
+  "addTask": "Add Task",
+  "returnCourse": "Return Course",
+  "confirmUp": "Confirm Upload",
+  "uploadCont": "Upload Content",
+  "courseDesign": "Course Design",
+  "targetMgmt": "Target Management",
+  "engWrite": "English Writing",
+  "engSpeak": "English Speaking",
+  "selectTemplate": "Please select appropriate course template",
+  "taskMode": "Task Mode",
+  "simpleMode": "Simple Mode",
+  "stage": "Stage",
+  "stagePrefix": "Stage ",
+  "stageTitle": "Stage Title",
+  "taskName": "Task Name",
+  "taskDesc": "Task Description",
+  "addFile": "Add File",
+  "addImgText": "Add Image Text",
+  "addLink": "Add Link",
+  "addResource": "Add Resource",
+  "embedCode": "Embed Code",
+  "teachDesign": "Teaching Design",
+  "teachCourse": "Teaching Courseware",
+  "teachVideo": "Teaching Video",
+  "teachAudio": "Teaching Audio",
+  "learnSheet": "Learning Sheet",
+  "practice": "Practice Content",
+  "evalContent": "Evaluation Content",
+  "evalSet": "Evaluation Settings",
+  "evalName": "Evaluation Name",
+  "fillEvalName": "Fill evaluation name",
+  "starLevel": "Star Level",
+  "evalDesc": "Evaluation Description",
+  "fillEvalDesc": "Fill evaluation description",
+  "target": "Target",
+  "add": "Add",
+  "curTargetMgmt": "Currently using target management",
+  "switchMode": "Switch Mode",
+  "targetTree": "Target Tree",
+  "targetCompass": "Target Compass",
+  "targetBoard": "Target Board",
+  "fold": "Fold",
+  "expand": "Expand",
+  "magicBox": "Magic Box",
+  "game24": "24 Points",
+  "mathBoard": "Math Board",
+  "simDrive": "Sim Drive",
+  "pathSearch": "Path Search",
+  "deepLearn": "Deep Learning",
+  "allHistory": "All History"
+}

+ 133 - 0
src/lang/hk.json

@@ -0,0 +1,133 @@
+{
+  "lang": "hk",
+  "courseManage": "課程管理",
+  "addCourse": "添加課程",
+  "return": "返回",
+  "pleaseEnterCourseName": "請輸入課程名稱",
+  "whetherPublicThisCourse": "是否公開此課程",
+  "type": "類型",
+  "uploadCover": "上傳封面",
+  "clickAddCover": "點擊添加封面",
+  "modifyCover": "修改封面",
+  "teachClass": "授課班級",
+  "pleaseSelectTeachClass": "請選擇授課班級",
+  "collaboratePersonnel": "協同人員",
+  "pleaseSelectCollaboratePersonnel": "請選擇協同人員",
+  "smartPaste": "智能粘貼",
+  "courseBriefDescription": "課程簡要描述",
+  "task": "任務",
+  "unnamedTask": "未命名任務",
+  "tool": "工具",
+  "learnContent": "學習內容",
+  "pleaseAddLearnContent": "請添加學習內容",
+  "link": "鏈接",
+  "aiApp": "Ai應用",
+  "codeUpload": "代碼上傳",
+  "file": "文件",
+  "imageText": "圖文",
+  "code": "代碼",
+  "resource": "資源",
+  "smartApp": "智能應用",
+  "codeEditor": "代碼編輯器",
+  "otherAttachment": "其他附件",
+  "uploadingPleaseWait": "上傳中,請稍後",
+  "taskOverview": "任務概述",
+  "inputTaskName": "輸入任務名稱",
+  "pleaseEnterTaskDescription": "請輸入任務描述",
+  "interact": "互動類",
+  "think": "思維類",
+  "collab": "協作類",
+  "assess": "測評類",
+  "eval": "評價類",
+  "program": "編程類",
+  "subject": "學科類",
+  "other": "其他",
+  "moveUp": "上移",
+  "moveDown": "下移",
+  "material": "素材庫",
+  "learnData": "學習資料",
+  "countdown": "倒計時",
+  "pick": "挑人",
+  "stuGroup": "學生分組",
+  "interVideo": "交互視頻",
+  "appCenter": "應用中心",
+  "thinkGrid": "思維網格",
+  "whiteboard": "電子白板",
+  "note": "便簽",
+  "collabDoc": "協同文檔",
+  "document": "文檔",
+  "mindmap": "思維導圖",
+  "table": "表格",
+  "rubric": "量規評分",
+  "survey": "問卷調查",
+  "choice": "選擇題",
+  "qa": "問答",
+  "homework": "作業提交",
+  "batchUp": "批量上傳",
+  "personal": "個人評價",
+  "match": "選擇匹配",
+  "sort": "排序",
+  "uploadAud": "上傳音頻",
+  "trainPlat": "訓練平台",
+  "aiExp": "AI體驗",
+  "sourceEdit": "源碼編輯",
+  "turtle": "海龜編程",
+  "aiAgent": "AI智能體",
+  "translate": "翻譯",
+  "digital": "數字畫板",
+  "formula": "公式編輯",
+  "selected": "已選擇",
+  "addTool": "添加工具",
+  "addToolDesc": "添加工具描述",
+  "expandTask": "展開任務",
+  "collapseTask": "收起任務",
+  "addTask": "添加任務",
+  "returnCourse": "返回課程",
+  "confirmUp": "確認上傳",
+  "uploadCont": "上傳課程內容",
+  "courseDesign": "課程設計",
+  "targetMgmt": "目標管理",
+  "engWrite": "英語寫作",
+  "engSpeak": "英語口語",
+  "selectTemplate": "請選擇合適的課程模板",
+  "taskMode": "任務模式",
+  "simpleMode": "簡易模式",
+  "stage": "階段",
+  "stageTitle": "階段標題",
+  "taskName": "任務名稱",
+  "taskDesc": "任務描述",
+  "addFile": "添加文件",
+  "addImgText": "添加圖文",
+  "addLink": "添加鏈接",
+  "addResource": "添加資源",
+  "embedCode": "嵌入代碼",
+  "teachDesign": "教學設計",
+  "teachCourse": "教學課件",
+  "teachVideo": "教學視頻",
+  "teachAudio": "教學音頻",
+  "learnSheet": "學習單",
+  "practice": "練習內容",
+  "evalContent": "評價內容",
+  "evalSet": "評價設置",
+  "evalName": "評價名稱",
+  "fillEvalName": "填寫評價名稱",
+  "starLevel": "評星等級",
+  "evalDesc": "評價描述",
+  "fillEvalDesc": "填寫評價描述",
+  "target": "目標",
+  "add": "添加",
+  "curTargetMgmt": "當前使用目標管理",
+  "switchMode": "切換模式",
+  "targetTree": "目標樹",
+  "targetCompass": "目標羅盤",
+  "targetBoard": "目標看板",
+  "fold": "折疊",
+  "expand": "展開",
+  "magicBox": "魔盒識字",
+  "game24": "24點",
+  "mathBoard": "數學畫板",
+  "simDrive": "模擬駕駛",
+  "pathSearch": "路徑搜索",
+  "deepLearn": "深度學習",
+  "allHistory": "全歷史"
+}

+ 29 - 1
src/main.js

@@ -4,6 +4,8 @@ import Vue from 'vue'
 import App from './App'
 import router from './router'
 import store from './config/config'
+import locale from 'element-ui/lib/locale/lang/en'
+
 import {  Loading } from 'element-ui';
 // Message,
 import { myMessage } from './components/tools/message';
@@ -27,6 +29,9 @@ import VueAudio from 'vue-audio-better'
 
 const echarts = require('echarts');
 
+import cn from "./lang/cn.json";
+import hk from "./lang/hk.json";
+import en from "./lang/en.json";
 //
 Vue.use(VideoPlayer).use(VueAudio).use(VueCookies).use(Viewer).use(hevueImgPreview, {
     clickMaskCLose: true
@@ -64,7 +69,26 @@ Viewer.setDefaults({
     'fullscreen': false, //播放时是否全屏
     'keyboard': true, //
 })
+//注册到vue原型上
+let lang = new Object();
+let domain_name=""
+
+
+if (window.location.href.includes("cocorobo.cn")) {
+  lang = cn;
+  domain_name="cn";
+} else if (window.location.href.includes("cocorobo.hk")) {
+  lang = hk;
+  domain_name="hk";
+} else if (window.location.href.includes("cocorobo.com")) {
+  lang=en;
+  domain_name="com";
+}else{
+  lang=cn;
+  domain_name="cn";
+}
 
+Vue.prototype.lang =lang;
 /* eslint-disable no-new */
 new Vue({
     el: '#app',
@@ -72,7 +96,11 @@ new Vue({
     components: { App },
     template: '<App/>'
 })
-
+if(domain_name==='com'){//英文版
+	Vue.use(ElementUI,{locale})
+}else{
+	Vue.use(ElementUI)
+}
 VueCookies.config('30d')
 
 router.beforeEach((to, from, next) => {