From ecc3b735a78dedaeea8f3f001eab00c30eec77b6 Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Fri, 30 Oct 2020 15:48:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VideoReview.vue | 2 +- src/i18n/en.ts | 294 +++++++++++++++++++++++++++++- src/i18n/zh.ts | 44 ++++- src/views/login/Login.vue | 12 +- src/views/login/Reset.vue | 10 +- src/views/login/Sign.vue | 22 +-- src/views/mine/Archives.vue | 6 +- src/views/mine/Cashout.vue | 6 +- src/views/mine/ReleaseVideo.vue | 12 +- src/views/mine/ReleaseWebcast.vue | 20 +- src/views/regime/Liveing.vue | 8 +- 11 files changed, 385 insertions(+), 51 deletions(-) diff --git a/src/components/VideoReview.vue b/src/components/VideoReview.vue index 20d499b..f44c502 100644 --- a/src/components/VideoReview.vue +++ b/src/components/VideoReview.vue @@ -139,7 +139,7 @@ export default defineComponent({ if(uinfo.value.name){ addcomment(toRaw(data.value)) }else{ - message.error("请先选择回复的学生") + message.error(lan.$t('xuanzehuifuxuesheng')) } // addcomment(toRaw(data.value)) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 5c933b1..8da725d 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -1,3 +1,295 @@ export default { - + zhiboguanli: "直播管理", + shipinguanli: "视频管理", + dingyuezheguanli: "订阅者管理", + gerenzhongxin: "个人中心", + rili: "日历", + quanbuzhibo: "全部直播", + weikaishi: "未开始", + yijieshu: "已结束", + zhibosousuo: "请输入想要搜索的直播标题", + haiweikaishi: "还未开始", + yijueshi: "已结束", + jinruzhibo: "进入直播", + chakanhuifang:"查看回放", + quanbushipin: "全部视频", + shenhezhong: "审核中", + weitongguo: "未通过", + yifabu: "已发布", + shipinsousuo: "请输入想要搜索的直播标题", + wodedingyuezhe: "我的订阅者", + xingming: "姓名", + suozaiguojia: "所在国家", + nianling: "年龄", + xueshengmuyu: "学生母语", + xingqudian: "兴趣点", + yuyandengji: "语言等级", + canyupingtaishichang: "参与平台直播总时长", + sousuoxuesheng: "请输入想要搜索的学生姓名", + huanying:"您好,欢迎来到", + beelink:"Beelink", + meiyouzhanghao:"还没有账号?", + yiyouzhanghao:"已有账号?", + qudenglu:"去登录", + chengweilaoshi:"成为一名Beelink老师", + shoujidenglu:"手机号登录", + mimadenglu:"账号密码登录", + shoujihao:"手机号", + yanzhengma:"验证码", + dianjihuoquyzm:"点击获取验证码", + lijidenglu:"立即登录", + shurushouji:"请输入您的手机号", + shuruyzm:"请输入您的验证码", + banquan:"Beelink公司版权所有 2019—2022", + zhanghao:"帐号", + shuruzhanghao:"请输入您的邮箱或者手机号", + mima:"密码", + shurumima:"请输入您的密码", + wangjimima:"忘记密码?", + yiwanxinlai:"亿万人的信赖和见证", + kaiqishenghuo:"Beelink 开启您的美好学习生活", + guanyubeelink:"关于 Beelink", + guanyuneirong:" Beelink平台拥有数千名优秀老师,丰富的教育经验和有趣的课堂环境,一对一辅导平台的教务管理、线上课堂、线下课堂、助学互动,课程回放等多项教学功能,让您利用碎片时间,轻轻松松学会各种语言。", + liaojiegengduo:"了解更多", + xiayibu:"下一步", + tongyixieyi:"勾选表示同意 《用户注册协议和隐私政策》", + shezhimima:"设置密码", + shurumimatwo:"请再次输入您的密码", + shuruxingming:"请输入您的姓名", + youxiang:"邮箱", + shuruyouxiang:"请输入您的邮箱", + muyu:"母语", + shurumuyu:"请输入您的母语", + jiaoshou:"教授", + xuanzejiaoshou:"请选择您的教授", + lijizhuce:"立刻注册", + wanchengzhuce:"您已完成注册", + qudangan:"恭喜您注册成功,点击跳转到我的档案页面", + yanzhengshouji:"验证手机号", + tianxiexinxi:"填写帐号信息", + fanhuishangyibu:"返回上一步", + zhucewancheng:"帐号注册完成", + mimachongzhi:"密码重置", + xiangqimima:"想起密码?", + zhanghuming:"账户名", + chongzhimima:"重置密码", + chongzhishurumima:"请输入您要设置的密码", + querenmima:"确认密码", + querenchongzhi:"确认重置", + wanchengchongzhi:"您已完成密码重置", + chongzhichenggong:"恭喜您重置密码成功,点击跳转到登录页面", + shibiezhanghao:"识别账号", + yanzhengxinxi:"验证账号信息,重置密码", + chongzhiwancheng:"密码重置完成", + xiugaitouxiang:"修改头像", + xiugai:"修改", + shuruxinnicheng:"请输入新的昵称", + jibenxinxi:"基本信息", + laiziguojia:"来自国家", + juzhudi:"居住地", + shurujuzhudi:"输入居住地", + wohaihuishuo:"我还会说", + shuliandu:"熟练度", + jixutianjia:"继续添加", + xindemuyu:"请输入新的母语", + duanshipin:"短视频", + shipinyaoqiu:"视频要求:", + shipinyaoqiu1:"上传视频时间要求为30s之内", + shipinyaoqiu2:"支持文件大小100M", + shipinyaoqiu3:"文件扩展名:fiv、mp4…", + ziwojieshao:"自我介绍", + lianxifangshi:"联系方式", + genghuanshoujihao:"更换手机号", + xitongshezhi:"系统设置", + shiqu:"时区", + huobi:"货币", + yuyan:"语言", + wanchengrenzheng:"请完成以下认证", + shuru:"请输入", + shoudaodeyzm:"收到的验证短信码", + shoujiyanzhengma:"手机验证码", + huoquyanzhengma:"获取验证码", + bangdingxinhaoma:"完成以下操作,绑定新号码", + bangdingshouji:"绑定手机", + xiugaizhanghaomima:"完成以下操作,修改账号密码", + yuanmima:"原密码", + xinmima:"新密码", + xinmimatwo:"确认新密码", + xiugaimima:"修改密码", + baocun:"保存信息", + gerenjieshao:"请输入个人介绍", + shangchuanshipin:"上传视频", + shipinbiaoti:"视频标题", + shurushipinbiaoti:"请输入您的视频标题", + shipinfengmian:"视频封面", + xuanzeshipin:"选择视频", + shipinjianjie:"视频简介", + shurushipinjianjie:"请输入您的视频简介", + zhiboxinxi:"直播信息", + zhibobiaoti:"直播标题", + shuruzhibobiaoti:"请输入您的直播标题", + zhibofengmian:"直播封面", + shipinjieshao:"视频介绍", + kaishishijian:"开始时间", + shezhikaishishijian:"请设置您的开始时间", + zhiboshichang:"直播时长", + shuruzhiboshijian:"请输入直播时间", + fenzhong:"分钟", + zhiborenshu:"直播人数", + shuruzhiborenshu:"请输入直播人数", + zhibojianjie:"直播简介", + shuruzhibojianjie:"请输入您的直播简介", + fabuzhibo:"发布直播", + wuzhibozige:"您尚未获得直播资格", + yijianfankui:"意见反馈", + fen:"分", + shipinshuju:"视频数据", + shangchuanshijian:"上传时间:", + bofangliang:"播放量", + zhuanfaliang:"转发量", + zhuangtai:"状态", + shenheing:"正在审核中,情耐心等待", + shenheweitongguo:"审核未通过", + yuanyin:"原因", + yuanyintext:"您的视频中含有大量敏感词汇,请修改后再次上传,感谢您对Beelink的技术支持", + xiugaishipin:"修改该视频", + shanchushipin:"删除该视频", + querenshanchu:"您确认删除该视频吗?", + shipinpingjia:"该视频评价", + fabiaoliuyan:"发表留言", + shuruliuyan:"请输入您的看法和见解", + suoyouhuifu:"查看所有回复", + huifu:"回复", + shanchu:"删除", + xiabanyayu:"西班牙语", + bianjixinxi:"编辑信息", + kaishizhibo:"开始直播", + shangkexuesheng:"上课学生", + chakanxiangqing:"查看详情", + canjiashichang:"参加时长", + quxiaozhibo:"取消直播", + yijujue:"已拒绝", + jujueyuanyintext:"请输入您拒绝该学生参与直播的原因", + juejueyuanyin:"拒绝原因", + querenjujue:"确认拒绝", + zhiboyemian:"直播页面", + querenguanbi:"您确认关闭直播吗", + dingyuezhe:"我的订阅者", + sousuodingyue:"请输入想要搜索的学生姓名", + wodeqianbao:"我的钱包", + lijitixian:"立即提现", + tixianjilu:"提现记录", + bangdingyonghu:"绑定用户", + zhanghuyue:"账户余额", + tianjiazhanghu:"添加新的账户", + yinhangka:"银行卡", + zhifubao:"支付宝", + weixin:"微信", + zhanghao0:"帐号", + tixianzhanghu:"提现到指定账户", + yue:"余额", + xuanzezhanghu:"选择账户", + tixianjine:"提现金额", + quanbujine:"全部金额", + tixianzhu:"注:每笔提现收取0.1%服务费,最低¥0.1", + yueshu:"您的余额只有", + zuiditixian:"最低提现金额¥100", + mingxichaxun:"明细查询", + kaishiriqi:"请选择开始日期", + jieshuriqi:"请选择结束日期", + zhanghu:"账户", + tijiaoriqi:"提交日期", + jine:"金额", + caozuo:"操作", + jiaoyimingxixiangqing:"交易明细详情", + leixing:"类型", + zhiboshouru:"直播收入", + tixian:"提现", + houtaichongzhi:"后台充值", + liushuihao:"流水号", + riqi:"日期", + laiyuan:"来源", + fanhui:"返回", + tixianjiluxiangqing:"提现记录详情", + daozhangjine:"到帐金额", + shouxufei:"手续费", + tixianzhuangtai:"提现状态", + yuanyinmiaoshu:"原因描述", + mingcheng:"名称", + shoukuanzhanghu:"收款账户", + quanbu:"全部", + shouru:"收入", + zhichu:"支出", + xinzengzhanghu:"新增账户", + shurukahao:"请输入收款人储蓄卡号", + kahao:"卡号", + kaihuhang:"开户行", + shurukaihuhang:"请输入开户行", + shuruzhifubao:"请输入支付宝账号/密码", + saomabangding:"扫码绑定", + zhu:"注", + weixinbangding:"打开手机微信扫描左侧二维码 进行微信账户绑定", + yinhangzhanghu:"银行账户", + yinhangbic:"银行BIC码", + tijiao:"提交", + zhiboliebiao:"直播列表", + zhibokecheng:"直播课程", + canyurenshu:"参与人数", + kechengpingfen:"课程评分", + shipinliebiao:'视频列表', + fabushipin:"发布视频", + zongguankanshu:"总观看数", + pingjundefen:"平均得分", + dingyueliebiao:"订阅列表", + dingyuerenshu:"订阅人数", + fuwutiaokuan:"服务条款", + yinsizhengce:"隐私政策", + shurufankui:"请输入您的意见反馈", + tijiaofankui:"提交反馈", + tuichu:"帐号退出", + wodedangan:"我的档案", + liebiaotongji:"列表统计", + guanyu:"关于Beelink", + xuanzehuifuxuesheng:"请先选择回复的学生", + shoujihaoweikong:"手机号不能为空", + zhanghaoweikong:"帐号不能为空", + mimaweikong:"密码不能为空", + shoujihaoyouwu:"手机号码有误,请重填", + yanzhengmaweikong:"验证码不能为空", + yonghubucunzai:"用户不存在", + wanshanxinxi:"请先完善相关信息", + mimabuyizhi:"两次密码输入不一致,请重新输入", + yanzhengmayouwu:"验证码有误,请重新输入", + xingmingweikong:"姓名不能为空", + youxiangweikong:"邮箱不能为空", + muyuweikong:"母语不能为空", + jiaoshouweikong:"请选择教授语言", + weitongyixieyi:"请同意用户协议", + yuanmimaweikong:"原密码不能为空", + youxiangcuowu:"邮箱格式有误", + kongzhanghaoliebiao:"您的账户列表为空,请先添加", + yuebuzu:"余额不足", + wenjiangeshi:"文件必须是视频格式", + biaotiweikong:"标题不能为空", + fengmianweikong:"封面不能为空", + wenjianweikong:"视频文件不能为空", + jianjieweikong:"视频简介不能为空", + fengmiangeshi:"上传封面文件必须是图片格式", + zhibobiaotiweikong:"直播标题不能为空", + zhibofengmianweikong:"直播封面不能为空", + shipinjieshaoweikong:"视频介绍不能为空", + kaishishijianweikong:"开始时间不能为空", + zhiboshichangweikong:"直播时长不能为空", + zhiborenshuweikong:"直播人数不能为空", + zhibojianjieweikong:"直播简介不能为空", + wuzhibozigeale:"您尚未获得直播资格", + shipinjieshaoccuowu:"视频介绍的文件格式错误", + buzhichitonghua:"您的浏览器不支持视频通话,请下载新版chrome浏览器", + bendiliushibai:"本地流发布失败", + bendiliuchenggong:"本地流发布成功", + chushihuachenggong:"初始化本地流成功", + chushihuashibai:"初始化本地流失败", + buzhichifenxiang:"您的浏览器不支持屏幕分享,请下载新版chrome", + xuanzefenxiangneirong:"请选择分享的内容", + guanbishibai:"关闭失败" } \ No newline at end of file diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 5e3a911..8da725d 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -249,5 +249,47 @@ export default { tuichu:"帐号退出", wodedangan:"我的档案", liebiaotongji:"列表统计", - guanyu:"关于Beelink" + guanyu:"关于Beelink", + xuanzehuifuxuesheng:"请先选择回复的学生", + shoujihaoweikong:"手机号不能为空", + zhanghaoweikong:"帐号不能为空", + mimaweikong:"密码不能为空", + shoujihaoyouwu:"手机号码有误,请重填", + yanzhengmaweikong:"验证码不能为空", + yonghubucunzai:"用户不存在", + wanshanxinxi:"请先完善相关信息", + mimabuyizhi:"两次密码输入不一致,请重新输入", + yanzhengmayouwu:"验证码有误,请重新输入", + xingmingweikong:"姓名不能为空", + youxiangweikong:"邮箱不能为空", + muyuweikong:"母语不能为空", + jiaoshouweikong:"请选择教授语言", + weitongyixieyi:"请同意用户协议", + yuanmimaweikong:"原密码不能为空", + youxiangcuowu:"邮箱格式有误", + kongzhanghaoliebiao:"您的账户列表为空,请先添加", + yuebuzu:"余额不足", + wenjiangeshi:"文件必须是视频格式", + biaotiweikong:"标题不能为空", + fengmianweikong:"封面不能为空", + wenjianweikong:"视频文件不能为空", + jianjieweikong:"视频简介不能为空", + fengmiangeshi:"上传封面文件必须是图片格式", + zhibobiaotiweikong:"直播标题不能为空", + zhibofengmianweikong:"直播封面不能为空", + shipinjieshaoweikong:"视频介绍不能为空", + kaishishijianweikong:"开始时间不能为空", + zhiboshichangweikong:"直播时长不能为空", + zhiborenshuweikong:"直播人数不能为空", + zhibojianjieweikong:"直播简介不能为空", + wuzhibozigeale:"您尚未获得直播资格", + shipinjieshaoccuowu:"视频介绍的文件格式错误", + buzhichitonghua:"您的浏览器不支持视频通话,请下载新版chrome浏览器", + bendiliushibai:"本地流发布失败", + bendiliuchenggong:"本地流发布成功", + chushihuachenggong:"初始化本地流成功", + chushihuashibai:"初始化本地流失败", + buzhichifenxiang:"您的浏览器不支持屏幕分享,请下载新版chrome", + xuanzefenxiangneirong:"请选择分享的内容", + guanbishibai:"关闭失败" } \ No newline at end of file diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 4b06829..0f6d004 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -183,7 +183,7 @@ export default defineComponent({ return; } if (phone.value == "") { - message.error("手机号不能为空"); + message.error(lan.$t('shoujihaoweikong')); return; } lock = true; @@ -211,9 +211,9 @@ export default defineComponent({ function login(): void { console.log(userinfo.phone,userinfo.password) if(userinfo.phone==''){ - message.error("帐号不能为空") + message.error(lan.$t('zhanghaoweikong')) } else if(userinfo.password==""){ - message.error("密码不能为空") + message.error(lan.$t('mimaweikong')) }else{ loginpass(userinfo.phone,userinfo.password) } @@ -224,15 +224,15 @@ export default defineComponent({ function sublogin(){ console.log(11) if(phone.value==''){ - message.error("手机号不能为空") + message.error(lan.$t('shoujihaoweikong')) return }else if(!(/^1[3-9]\d{9}$/.test(phone.value))){ - message.error("手机号码有误,请重填"); + message.error(lan.$t('shoujihaoyouwu')); return } else if(code.value==""){ // console.log(phone.value) console.log((/^1[3-9]\d{9}$/.test(phone.value))) - message.error("验证码不能为空") + message.error(lan.$t('yanzhengmaweikong')) return }else{ loginpass(phone.value,'',1,code.value) diff --git a/src/views/login/Reset.vue b/src/views/login/Reset.vue index 2ee84ae..9b8bf59 100644 --- a/src/views/login/Reset.vue +++ b/src/views/login/Reset.vue @@ -134,7 +134,7 @@ export default defineComponent({ return; } if (uinfo.value.phone == "") { - message.error("手机号不能为空"); + message.error(lan.$t('shoujihaoweikong')); return; } lock = true; @@ -179,16 +179,16 @@ export default defineComponent({ console.log(uinfo) stepnow.value=e }else{ - message.error("用户不存在") + message.error(lan.$t('yonghubucunzai')) } }else if(e==3){ if(uinfo.value.phone==""|| uinfo.value.code==""|| uinfo.value.password==""|| uinfo.value.repassword==""){ - message.error("请先完善相关信息") + message.error(lan.$t('wanshanxinxi')) return }else if(uinfo.value.password!=uinfo.value.repassword){ - message.error("两次密码输入不一致,请重新输入") + message.error(lan.$t('mimabuyizhi')) return } @@ -202,7 +202,7 @@ export default defineComponent({ router.push("/") } }else{ - message.error("验证码有误,请重新输入") + message.error(lan.$t("yanzhengmayouwu")) } } diff --git a/src/views/login/Sign.vue b/src/views/login/Sign.vue index 36806f4..ea1651e 100644 --- a/src/views/login/Sign.vue +++ b/src/views/login/Sign.vue @@ -280,7 +280,7 @@ export default defineComponent({ return; } if (phone.value.phone == "") { - message.error("手机号不能为空"); + message.error(lan.$t('shoujihaoweikong')); return; } lock = true; @@ -310,31 +310,31 @@ export default defineComponent({ function yanzheng() { if (userinfo.value.pass == "") { - message.error("密码不能为空"); + message.error(lan.$t("mimaweikong")); return false; } if (userinfo.value.passtow == "") { - message.error("密码不能为空"); + message.error(lan.$t("mimaweikong")); return false; } if (userinfo.value.pass != userinfo.value.passtow) { - message.error("两次密码输入不一致"); + message.error(lan.$t('mimabuyizhi')); return; } if (userinfo.value.name == "") { - message.error("姓名不能为空"); + message.error(lan.$t("xingmingweikong")); return false; } if (userinfo.value.emil == "") { - message.error("邮箱不能为空"); + message.error(lan.$t('youxiangweikong')); return false; } if (userinfo.value.muyu == "") { - message.error("母语不能为空"); + message.error(lan.$t('muyuweikong')); return false; } if (userinfo.value.jiaoshou == "") { - message.error("请选择教授语言"); + message.error(lan.$t('jiaoshouweikong')); return false; } return true; @@ -346,7 +346,7 @@ export default defineComponent({ async function next(e: number) { if (!ifagree.value) { - message.error("请同意用户协议"); + message.error(lan.$t('weitongyixieyi')); return; } if (stepnow.value > e) { @@ -357,10 +357,10 @@ export default defineComponent({ case 2: { console.log(e); if (phone.value.phone == "") { - message.error("手机号不能为空"); + message.error(lan.$t('shoujihaoweikong')); return; } else if (phone.value.code == "") { - message.error("验证码不能为空"); + message.error(lan.$t('yanzhengmaweikong')); return; } const res = await checksmscode( diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index d6c7676..3b2b588 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -763,10 +763,10 @@ export default defineComponent({ editpassword(toRaw(passwordForm)); togglePasswordModal(false); } else { - message.error("原密码不能为空"); + message.error(lan.$t('yuanmimaweikong')); } } else { - message.error("两次密码输入不一致"); + message.error(lan.$t('mimabuyizhi')); } } /** @@ -822,7 +822,7 @@ export default defineComponent({ if (reg.test(userinfo.value.email)) { putmember(uesrinfo); } else { - message.error("邮箱格式有误"); + message.error(lan.$t('youxiangcuowu')); } } diff --git a/src/views/mine/Cashout.vue b/src/views/mine/Cashout.vue index 24a1a6d..563fa00 100644 --- a/src/views/mine/Cashout.vue +++ b/src/views/mine/Cashout.vue @@ -177,13 +177,13 @@ export default defineComponent({ payinfo.value.money = Number(payinfo.value.money); console.log(toRaw(payinfo.value)); if (accountlist.value.length == 0) { - message.error("您的账户列表为空,请先添加"); + message.error(lan.$t('kongzhanghaoliebiao')); return; } else if (payinfo.value.money < 100) { - message.error("最低提现金额为100"); + message.error(lan.$t('zuiditixian')); return; } else if (payinfo.value.money > yue.value) { - message.error("余额不足"); + message.error(lan.$t('yuebuzu')); } else { cashout( toRaw(payinfo.value), diff --git a/src/views/mine/ReleaseVideo.vue b/src/views/mine/ReleaseVideo.vue index 918ac1e..cc20b82 100644 --- a/src/views/mine/ReleaseVideo.vue +++ b/src/views/mine/ReleaseVideo.vue @@ -245,7 +245,7 @@ export default defineComponent({ console.log(info) if(info.type.split("/")[0]!="video"){ ifallowvideo.value - message.error("文件必须是视频格式") + message.error(lan.$t('wenjiangeshi')) }else{ ifallowvideo.value=true @@ -265,15 +265,15 @@ export default defineComponent({ console.log(routes.query,"adsadsa") const subdata=toRaw(form.value) if(subdata.title==""){ - message.error("标题不能为空") + message.error(lan.$t('biaotiweikong')) return }else if(subdata.img==""){ - message.error("封面不能为空") + message.error(lan.$t('fengmianweikong')) return }else if(subdata.fileurl==""){ - message.error("视频文件不能为空") + message.error(lan.$t('wenjianweikong')) }else if(subdata.desc==""){ - message.error("视频简介不能为空") + message.error(lan.$t('jianjieweikong')) } else{ @@ -293,7 +293,7 @@ export default defineComponent({ function beforeUpload(info?: any){ console.log(info.type) if(info.type.split('/')[0]!="image"){ - message.error("上传文件必须是图片格式") + message.error(lan.$t('fengmiangeshi')) ifalowupload.value=false return }else{ diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index b2d4a8a..250f3fa 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -328,25 +328,25 @@ export default defineComponent({ console.log(toRaw(form), 111); const subdata: any = toRaw(form.value); if (subdata.title == "") { - message.error("直播标题不能为空"); + message.error(lan.$t('zhibobiaotiweikong')); return; } else if (subdata.img == "") { - message.error("直播封面不能为空"); + message.error(lan.$t('zhibofengmianweikong')); return; } else if (subdata.fileurl == "") { - message.error("视频介绍不能为空"); + message.error(lan.$t('shipinjieshaoweikong')); return; } else if (subdata.dateline == "") { - message.error("开始时间不能为空"); + message.error(lan.$t('kaishishijianweikong')); return; } else if (subdata.livetime == "") { - message.error("直播时长不能为空"); + message.error(lan.$t('zhiboshichangweikong')); return; } else if (subdata.livenumber == "") { - message.error("直播人数不能为空"); + message.error(lan.$t('zhiborenshuweikong')); return; } else if (subdata.desc == "") { - message.error("直播简介不能为空"); + message.error(lan.$t('zhibojianjieweikong')); return; } else { @@ -364,7 +364,7 @@ export default defineComponent({ liveadd(subdata); } } else { - message.error("您尚未获得直播资格"); + message.error(lan.$t('wuzhibozigeale')); } } }) @@ -425,7 +425,7 @@ export default defineComponent({ console.log(info); if (info.type.split("/")[0] != "video") { ifallowupload.value = false; - message.error("视频介绍的文件格式错误"); + message.error(lan.$t('shipinjieshaoccuowu')); return; } else { ifallowupload.value = true; @@ -473,7 +473,7 @@ export default defineComponent({ function beforeUploadpic(info?: any) { console.log(info); if (info.type.split("/")[0] != "image") { - message.error("封面必须是图片文件"); + message.error(lan.$t('fengmiangeshi')); ifallowpic.value = false; return; } else { diff --git a/src/views/regime/Liveing.vue b/src/views/regime/Liveing.vue index d0c5a2d..9402c50 100644 --- a/src/views/regime/Liveing.vue +++ b/src/views/regime/Liveing.vue @@ -219,7 +219,7 @@ export default defineComponent({ const id = useRoute().query.id; TRTC.checkSystemRequirements().then((result: any) => { if(!result) { - message.error("您的浏览器不支持视频通话,请下载新版chrome浏览器") + message.error(lan.$t('buzhichitonghua')) } }) async function qiehuan(){ @@ -272,7 +272,7 @@ export default defineComponent({ const result = await TRTC.checkSystemRequirements() console.log(result,11111) if(!result) { - message.error("您的浏览器不支持屏幕分享,请下载新版chrome"); + message.error(lan.$t('buzhichifenxiang')); shexiang() return ; } @@ -283,7 +283,7 @@ export default defineComponent({ .initialize() .catch((error: string) => { console.error('初始化本地流失败 ' + error); - message.error("请选择分享的内容") + message.error(lan.$t('xuanzefenxiangneirong')) setTimeout(()=>{ pingmu() @@ -378,7 +378,7 @@ export default defineComponent({ visible.value = false; }).catch((error: string) => { - message.error('关闭失败: ' + error); + message.error(lan.$t('guanbishibai')+':' + error); }); } From fd001f472471417654766f6a0d57b8ce600c8c9d Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Fri, 30 Oct 2020 15:50:42 +0800 Subject: [PATCH 2/2] zh --- src/i18n/en.ts | 2 +- src/i18n/zh.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 8da725d..4bef076 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -284,7 +284,7 @@ export default { zhibojianjieweikong:"直播简介不能为空", wuzhibozigeale:"您尚未获得直播资格", shipinjieshaoccuowu:"视频介绍的文件格式错误", - buzhichitonghua:"您的浏览器不支持视频通话,请下载新版chrome浏览器", + buzhichitonghua:"您的浏览器不支持视频通话,请下载新版chrome浏览器", bendiliushibai:"本地流发布失败", bendiliuchenggong:"本地流发布成功", chushihuachenggong:"初始化本地流成功", diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 8da725d..4bef076 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -284,7 +284,7 @@ export default { zhibojianjieweikong:"直播简介不能为空", wuzhibozigeale:"您尚未获得直播资格", shipinjieshaoccuowu:"视频介绍的文件格式错误", - buzhichitonghua:"您的浏览器不支持视频通话,请下载新版chrome浏览器", + buzhichitonghua:"您的浏览器不支持视频通话,请下载新版chrome浏览器", bendiliushibai:"本地流发布失败", bendiliuchenggong:"本地流发布成功", chushihuachenggong:"初始化本地流成功",