From 2b870802eda5d02eab47e44cfef4ec3fd8fe3db4 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 5 Mar 2021 16:09:02 +0800 Subject: [PATCH] feat(h5): video i18n --- src/core/helpers/i18n/en.json | 2 ++ src/core/helpers/i18n/es.json | 2 ++ src/core/helpers/i18n/fr.json | 2 ++ src/core/helpers/i18n/zh-Hans.json | 2 ++ src/core/helpers/i18n/zh-Hant.json | 2 ++ src/platforms/h5/view/components/video/index.vue | 9 ++++++--- 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/core/helpers/i18n/en.json b/src/core/helpers/i18n/en.json index 46796e550..87cff7a64 100644 --- a/src/core/helpers/i18n/en.json +++ b/src/core/helpers/i18n/en.json @@ -6,6 +6,8 @@ "uni.showModal.confirm": "confirm", "uni.picker.done": "Done", "uni.picker.cancel": "Cancel", + "uni.video.danmu": "Danmu", + "uni.video.volume": "Volume", "uni.button.feedback.title": "feedback", "uni.button.feedback.send": "send" } diff --git a/src/core/helpers/i18n/es.json b/src/core/helpers/i18n/es.json index bf63c9923..f28ceadf4 100644 --- a/src/core/helpers/i18n/es.json +++ b/src/core/helpers/i18n/es.json @@ -6,6 +6,8 @@ "uni.showModal.confirm": "confirmar", "uni.picker.done": "OK", "uni.picker.cancel": "Cancelar", + "uni.video.danmu": "Danmu", + "uni.video.volume": "Volumen", "uni.button.feedback.title": "realimentación", "uni.button.feedback.send": "enviar" } diff --git a/src/core/helpers/i18n/fr.json b/src/core/helpers/i18n/fr.json index ed59dbba5..cab3a16ad 100644 --- a/src/core/helpers/i18n/fr.json +++ b/src/core/helpers/i18n/fr.json @@ -6,6 +6,8 @@ "uni.showModal.confirm": "confirmer", "uni.picker.done": "OK", "uni.picker.cancel": "Annuler", + "uni.video.danmu": "Danmu", + "uni.video.volume": "Le Volume", "uni.button.feedback.title": "retour d'information", "uni.button.feedback.send": "envoyer" } diff --git a/src/core/helpers/i18n/zh-Hans.json b/src/core/helpers/i18n/zh-Hans.json index 002e2f274..6100815fd 100644 --- a/src/core/helpers/i18n/zh-Hans.json +++ b/src/core/helpers/i18n/zh-Hans.json @@ -6,6 +6,8 @@ "uni.showModal.confirm": "确认", "uni.picker.done": "完成", "uni.picker.cancel": "取消", + "uni.video.danmu": "弹幕", + "uni.video.volume": "音量", "uni.button.feedback.title": "问题反馈", "uni.button.feedback.send": "发送" } diff --git a/src/core/helpers/i18n/zh-Hant.json b/src/core/helpers/i18n/zh-Hant.json index b60c33fa8..6fc061f16 100644 --- a/src/core/helpers/i18n/zh-Hant.json +++ b/src/core/helpers/i18n/zh-Hant.json @@ -6,6 +6,8 @@ "uni.showModal.confirm": "確認", "uni.picker.done": "完成", "uni.picker.cancel": "取消", + "uni.video.danmu": "彈幕", + "uni.video.volume": "音量", "uni.button.feedback.title": "問題反饋", "uni.button.feedback.send": "發送" } diff --git a/src/platforms/h5/view/components/video/index.vue b/src/platforms/h5/view/components/video/index.vue index 12e95d872..8fdf78433 100644 --- a/src/platforms/h5/view/components/video/index.vue +++ b/src/platforms/h5/view/components/video/index.vue @@ -83,7 +83,7 @@ class="uni-video-danmu-button" @click.stop="triggerDanmu" > - 弹幕 + {{ $$t("uni.video.danmu") }}
- 音量 + {{ $$t("uni.video.volume") }}