This commit is contained in:
Harvey authored and Harvey Zack committed 2022-02-11 11:20:54 +08:00
1 parent 2d57f6d6d1
commit fd8e763ae6
28 files changed
+135 -165

No files matched your search

@@ -5,7 +5,7 @@ export default function aspectRatio(option) {
const { i18n } = art;
return {
...option,
html: `${i18n.get('Aspect ratio')}:
html: `${i18n.get('Aspect Ratio')}:
<span data-ratio="default" class="art-current">${i18n.get('Default')}</span>
<span data-ratio="4:3">4:3</span>
<span data-ratio="16:9">16:9</span>
+1 -1
View File
@@ -1,7 +1,7 @@
export default function info(option) {
return art => ({
...option,
html: art.i18n.get('Video info'),
html: art.i18n.get('Video Info'),
click: contextmenu => {
art.info.show = true;
contextmenu.show = false;
@@ -5,7 +5,7 @@ export default function playbackRate(option) {
const { i18n } = art;
return {
...option,
html: `${i18n.get('Play speed')}:
html: `${i18n.get('Play Speed')}:
<span data-rate="0.5">0.5</span>
<span data-rate="0.75">0.75</span>
<span data-rate="1.0" class="art-current">${i18n.get('Normal')}</span>
+1 -1
View File
@@ -18,7 +18,7 @@ export default function fullscreen(option) {
});
art.on('fullscreen', (value) => {
tooltip($control, i18n.get(value ? 'Exit fullscreen' : 'Fullscreen'));
tooltip($control, i18n.get(value ? 'Exit Fullscreen' : 'Fullscreen'));
});
},
});
@@ -3,7 +3,7 @@ import { append, tooltip } from '../utils';
export default function fullscreenWeb(option) {
return (art) => ({
...option,
tooltip: art.i18n.get('Web fullscreen'),
tooltip: art.i18n.get('Web Fullscreen'),
mounted: ($control) => {
const {
events: { proxy },
@@ -18,7 +18,7 @@ export default function fullscreenWeb(option) {
});
art.on('fullscreenWeb', (value) => {
tooltip($control, i18n.get(value ? 'Exit web fullscreen' : 'Web fullscreen'));
tooltip($control, i18n.get(value ? 'Exit Web Fullscreen' : 'Web Fullscreen'));
});
},
});
+2 -2
View File
@@ -3,7 +3,7 @@ import { append, tooltip } from '../utils';
export default function pip(option) {
return (art) => ({
...option,
tooltip: art.i18n.get('PIP mode'),
tooltip: art.i18n.get('PIP Mode'),
mounted: ($control) => {
const {
events: { proxy },
@@ -18,7 +18,7 @@ export default function pip(option) {
});
art.on('pip', (value) => {
tooltip($control, i18n.get(value ? 'Exit PIP mode' : 'PIP mode'));
tooltip($control, i18n.get(value ? 'Exit PIP Mode' : 'PIP Mode'));
});
},
});
+2 -2
View File
@@ -3,7 +3,7 @@ import { append, tooltip } from '../utils';
export default function setting(option) {
return art => ({
...option,
tooltip: art.i18n.get('Show setting'),
tooltip: art.i18n.get('Show Setting'),
mounted: $control => {
const {
events: { proxy },
@@ -19,7 +19,7 @@ export default function setting(option) {
});
art.on('setting', value => {
tooltip($control, i18n.get(value ? 'Hide setting' : 'Show setting'));
tooltip($control, i18n.get(value ? 'Hide Setting' : 'Show Setting'));
});
},
});
+2 -2
View File
@@ -3,7 +3,7 @@ import { append, tooltip } from '../utils';
export default function subtitle(option) {
return art => ({
...option,
tooltip: art.i18n.get('Hide subtitle'),
tooltip: art.i18n.get('Hide Subtitle'),
mounted: $control => {
const {
events: { proxy },
@@ -19,7 +19,7 @@ export default function subtitle(option) {
});
art.on('subtitle', value => {
tooltip($control, i18n.get(value ? 'Hide subtitle' : 'Show subtitle'));
tooltip($control, i18n.get(value ? 'Hide Subtitle' : 'Show Subtitle'));
});
},
});
+20 -26
View File
@@ -1,42 +1,36 @@
{
"Video info": "统计信息",
"Video Info": "统计信息",
"Close": "关闭",
"Video load failed": "加载失败",
"Video Load Failed": "加载失败",
"Volume": "音量",
"Play": "播放",
"Pause": "暂停",
"Rate": "速度",
"Mute": "静音",
"Flip": "画面翻转",
"Rotate": "旋转",
"Video Flip": "画面翻转",
"Horizontal": "水平",
"Vertical": "垂直",
"Reconnect": "重新连接",
"Hide subtitle": "隐藏字幕",
"Show subtitle": "显示字幕",
"Hide danmu": "隐藏弹幕",
"Show danmu": "显示弹幕",
"Show setting": "显示设置",
"Hide setting": "隐藏设置",
"Hide Subtitle": "隐藏字幕",
"Show Subtitle": "显示字幕",
"Show Setting": "显示设置",
"Hide Setting": "隐藏设置",
"Screenshot": "截图",
"Play speed": "播放速度",
"Aspect ratio": "画面比例",
"Play Speed": "播放速度",
"Aspect Ratio": "画面比例",
"Default": "默认",
"Normal": "正常",
"Open": "打开",
"Switch video": "切换",
"Switch subtitle": "切换字幕",
"Switch Video": "切换",
"Switch Subtitle": "切换字幕",
"Fullscreen": "全屏",
"Exit fullscreen": "退出全屏",
"Web fullscreen": "网页全屏",
"Exit web fullscreen": "退出网页全屏",
"Mini player": "迷你播放器",
"PIP mode": "画中画模式",
"Exit PIP mode": "退出画中画模式",
"PIP not supported": "不支持画中画模式",
"Fullscreen not supported": "不支持全屏模式",
"Local Subtitle": "本地字幕",
"Local Video": "本地视频",
"Subtitle offset time": "字幕偏移",
"No subtitles found": "未发现字幕"
"Exit Fullscreen": "退出全屏",
"Web Fullscreen": "网页全屏",
"Exit Web Fullscreen": "退出网页全屏",
"Mini Player": "迷你播放器",
"PIP Mode": "画中画模式",
"Exit PIP Mode": "退出画中画模式",
"PIP Not Supported": "不支持画中画模式",
"Fullscreen Not Supported": "不支持全屏模式",
"Subtitle Offset Time": "字幕偏移"
}
+20 -26
View File
@@ -1,42 +1,36 @@
{
"Video info": "統計訊息",
"Video Info": "統計訊息",
"Close": "關閉",
"Video load failed": "載入失敗",
"Video Load Failed": "載入失敗",
"Volume": "音量",
"Play": "播放",
"Pause": "暫停",
"Rate": "速度",
"Mute": "靜音",
"Flip": "畫面翻轉",
"Rotate": "旋轉",
"Video Flip": "畫面翻轉",
"Horizontal": "水平",
"Vertical": "垂直",
"Reconnect": "重新連接",
"Hide subtitle": "隱藏字幕",
"Show subtitle": "顯示字幕",
"Hide danmu": "隱藏彈幕",
"Show danmu": "顯示彈幕",
"Show setting": "顯示设置",
"Hide setting": "隱藏设置",
"Hide Subtitle": "隱藏字幕",
"Show Subtitle": "顯示字幕",
"Show Setting": "顯示设置",
"Hide Setting": "隱藏设置",
"Screenshot": "截圖",
"Play speed": "播放速度",
"Aspect ratio": "畫面比例",
"Play Speed": "播放速度",
"Aspect Ratio": "畫面比例",
"Default": "默認",
"Normal": "正常",
"Open": "打開",
"Switch video": "切換",
"Switch subtitle": "切換字幕",
"Switch Video": "切換",
"Switch Subtitle": "切換字幕",
"Fullscreen": "全屏",
"Exit fullscreen": "退出全屏",
"Web fullscreen": "網頁全屏",
"Exit web fullscreen": "退出網頁全屏",
"Mini player": "迷你播放器",
"PIP mode": "畫中畫模式",
"Exit PIP mode": "退出畫中畫模式",
"PIP not supported": "不支持畫中畫模式",
"Fullscreen not supported": "不支持全屏模式",
"Local Subtitle": "本地字幕",
"Local Video": "本地視頻",
"Subtitle offset time": "字幕偏移",
"No subtitles found": "未發現字幕"
"Exit Fullscreen": "退出全屏",
"Web Fullscreen": "網頁全屏",
"Exit Web Fullscreen": "退出網頁全屏",
"Mini Player": "迷你播放器",
"PIP Mode": "畫中畫模式",
"Exit PIP Mode": "退出畫中畫模式",
"PIP Not Supported": "不支持畫中畫模式",
"Fullscreen Not Supported": "不支持全屏模式",
"Subtitle Offset Time": "字幕偏移"
}
@@ -41,7 +41,7 @@ export default function aspectRatioMix(art) {
$player.dataset.aspectRatio = ratio;
}
notice.show = `${i18n.get('Aspect ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`;
notice.show = `${i18n.get('Aspect Ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`;
art.emit('aspectRatio', ratio);
},
});
+1 -1
View File
@@ -81,7 +81,7 @@ export default function eventInit(art) {
art.controls.show = false;
addClass($player, 'art-error');
sleep(1000).then(() => {
notice.show = i18n.get('Video load failed');
notice.show = i18n.get('Video Load Failed');
art.destroy(false);
});
}
+1 -1
View File
@@ -25,7 +25,7 @@ export default function flipMix(art) {
}
const word = flip.replace(flip[0], flip[0].toUpperCase());
notice.show = `${i18n.get('Flip')}: ${i18n.get(word)}`;
notice.show = `${i18n.get('Video Flip')}: ${i18n.get(word)}`;
art.emit('flip', flip);
},
});
@@ -69,7 +69,7 @@ export default function fullscreenMix(art) {
return false;
},
set() {
notice.show = i18n.get('Fullscreen not supported');
notice.show = i18n.get('Fullscreen Not Supported');
},
});
}
+1 -1
View File
@@ -47,7 +47,7 @@ export default function miniMix(art) {
removeClass($player, 'art-is-dragging');
});
append($miniTitle, option.title || i18n.get('Mini player'));
append($miniTitle, option.title || i18n.get('Mini Player'));
def(art, 'mini', {
get() {
+1 -1
View File
@@ -74,7 +74,7 @@ export default function pipMix(art) {
return false;
},
set() {
notice.show = i18n.get('PIP not supported');
notice.show = i18n.get('PIP Not Supported');
},
});
}
@@ -28,10 +28,9 @@ export default function subtitleOffsetMix(art) {
}
art.subtitle.update();
notice.show = `${i18n.get('Subtitle offset time')}: ${value}s`;
notice.show = `${i18n.get('Subtitle Offset Time')}: ${value}s`;
art.emit('subtitleOffset', value);
} else {
notice.show = `${i18n.get('No subtitles found')}`;
art.emit('subtitleOffset', 0);
}
},
+1 -1
View File
@@ -19,7 +19,7 @@ export default function switchMix(art) {
art.play();
}
if (name) {
notice.show = `${i18n.get('Switch video')}: ${name}`;
notice.show = `${i18n.get('Switch Video')}: ${name}`;
}
art.emit('switch', url);
resolve(url);
@@ -3,7 +3,7 @@ export default function aspectRatio(art) {
return {
width: 150,
html: i18n.get('Aspect ratio'),
html: i18n.get('Aspect Ratio'),
icon: icons.aspectRatio,
items: ['default', '4:3', '16:9'].map((item) => {
return {
+1 -1
View File
@@ -9,7 +9,7 @@ export default function playbackRate(art) {
return {
width: 150,
html: i18n.get('Flip'),
html: i18n.get('Video Flip'),
items: Object.keys(keys).map((key) => {
return {
html: i18n.get(keys[key]),
@@ -3,7 +3,7 @@ export default function playbackRate(art) {
return {
width: 150,
html: i18n.get('Play speed'),
html: i18n.get('Play Speed'),
icon: icons.playbackRate,
items: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0].map((item) => {
return {
@@ -3,7 +3,7 @@ export default function subtitleOffset(art) {
return {
width: 150,
html: i18n.get('Subtitle offset time'),
html: i18n.get('Subtitle Offset Time'),
icon: icons.subtitle,
items: [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5].map((item) => {
return {
+1 -1
View File
@@ -81,7 +81,7 @@ export default class Subtitle extends Component {
const subtitleOption = { ...option.subtitle, ...newOption, url };
return this.init(subtitleOption).then((subUrl) => {
if (newOption.name) {
notice.show = `${i18n.get('Switch subtitle')}: ${newOption.name}`;
notice.show = `${i18n.get('Switch Subtitle')}: ${newOption.name}`;
}
return subUrl;
});