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

@@ -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);