diff --git a/src/components/Play.vue b/src/components/Play.vue index 6eb9778..93720c8 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -294,7 +294,7 @@ export default { if (i < this.right.listData.length) { this.video.index++ } else { - this.$message.warning('这是最后一集了.') + this.$message.warning(this.$t('last_video')) } }, listEvent () { @@ -322,7 +322,7 @@ export default { video.find({ detail: this.video.detail }).then(res => { if (res) { video.remove(this.video.id).then(r => { - this.$message.info('删除成功') + this.$message.info(this.$t('delete_success')) this.isStar = false }) } else { @@ -331,7 +331,7 @@ export default { delete v.id } video.add(v).then(r => { - this.$message.success('收藏成功') + this.$message.success(this.$t('star_success')) this.isStar = true }) } diff --git a/src/components/Setting.vue b/src/components/Setting.vue index 9c38a68..f6997a5 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -85,7 +85,7 @@ export default { this.$i18n.locale = e this.s.language = e setting.update(this.s).then(res => { - this.$message.success('设置成功') + this.$message.success(this.$t('set_success')) }) }, siteClick (e) { @@ -93,7 +93,7 @@ export default { this.show.site = false this.s.site = e setting.update(this.s).then(res => { - this.$message.success('设置成功') + this.$message.success(this.$t('set_success')) }) } }, diff --git a/src/components/Share.vue b/src/components/Share.vue index 6420312..03c07e9 100644 --- a/src/components/Share.vue +++ b/src/components/Share.vue @@ -7,9 +7,9 @@
{{ card.name }}
-

长按识别二维码, 即可播放.

+

{{$t('qr_tips')}}

-

『ZY Player』提供技术支持.严禁传播违法资源

+

{{$t('zy_tips')}}

diff --git a/src/locales/en.json b/src/locales/en.json index acd19ea..40814fc 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -26,5 +26,11 @@ "sync": "Sync", "total": "Items", "website": "Official Website", - "issues": "Issues" + "issues": "Issues", + "set_success": "Set up successfully.", + "delete_success": "Delete successful.", + "star_success": "Collection success.", + "last_video": "This is the last episode.", + "qr_tips": "Long press the QR code to recognize the playback.", + "zy_tips": "Prohibit the dissemination of illegal resources." } diff --git a/src/locales/zh-cn.json b/src/locales/zh-cn.json index 2d85a7c..b36f8fa 100644 --- a/src/locales/zh-cn.json +++ b/src/locales/zh-cn.json @@ -26,5 +26,11 @@ "sync": "同步", "total": "条数据", "website": "官网", - "issues": "反馈" + "issues": "反馈", + "set_success": "设置成功。", + "delete_success": "删除成功。", + "star_success": "收藏成功。", + "last_video": "这已经是最后一集了。", + "qr_tips": "长按二维码,识别播放。", + "zy_tips": "『ZY Player』技术支持,严禁传播违法资源。" }