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

+5 -1
View File
@@ -31,5 +31,9 @@
"Web fullscreen": "网页全屏",
"Exit web fullscreen": "退出网页全屏",
"Mini player": "迷你播放器",
"Does not support fullscreen": "不支持全屏"
"Does not support fullscreen": "不支持全屏",
"Local Subtitle": "本地字幕",
"Local Video": "本地视频",
"Subtitle offset time": "字幕偏移时间",
"No subtitles found": "未发现字幕"
}
+8 -4
View File
@@ -14,10 +14,10 @@
"Reconnect": "重新連接",
"Hide subtitle": "隱藏字幕",
"Show subtitle": "顯示字幕",
"Show setting": "顯示设置",
"Hide setting": "隱藏设置",
"Hide danmu": "隱藏彈幕",
"Show danmu": "顯示彈幕",
"Show setting": "顯示设置",
"Hide setting": "隱藏设置",
"Screenshot": "截圖",
"Play speed": "播放速度",
"Aspect ratio": "畫面比例",
@@ -31,5 +31,9 @@
"Web fullscreen": "網頁全屏",
"Exit web fullscreen": "退出網頁全屏",
"Mini player": "迷你播放器",
"Does not support fullscreen": "不支持全屏"
}
"Does not support fullscreen": "不支持全屏",
"Local Subtitle": "本地字幕",
"Local Video": "本地視頻",
"Subtitle offset time": "字幕偏移時間",
"No subtitles found": "未發現字幕"
}
@@ -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', () => {