update i18n

This commit is contained in:
Harvey committed 2019-11-22 10:16:46 +08:00
1 parent 042745f001
commit 707df15b2d
12 files changed
+35 -74

No files matched your search

@@ -8,15 +8,6 @@ export default function localSubtitle(art) {
i18n,
} = art;
i18n.update({
'zh-cn': {
'Local Subtitle': '本地字幕',
},
'zh-tw': {
'Local Subtitle': '本地字幕',
},
});
function loadSubtitle(file) {
if (file) {
const type = getExt(file.name);
@@ -10,15 +10,6 @@ export default function localVideo(art) {
i18n,
} = art;
i18n.update({
'zh-cn': {
'Local Video': '本地视频',
},
'zh-tw': {
'Local Video': '本地視頻',
},
});
function loadVideo(file) {
if (file) {
const canPlayType = template.$video.canPlayType(file.type);
@@ -48,17 +48,6 @@ export default function subtitleOffset(art) {
const { clamp } = art.constructor.utils;
const { setting, notice, template, i18n, player } = art;
i18n.update({
'zh-cn': {
'Subtitle offset time': '字幕偏移时间',
'No subtitles found': '未发现字幕',
},
'zh-tw': {
'Subtitle offset time': '字幕偏移時間',
'No subtitles found': '未發現字幕',
},
});
setting.add(settingMix);
let cuesCache = [];
art.on('subtitle:switch', () => {