mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 10:41:20 -08:00
优化i18n
This commit is contained in:
1 parent
135b1b7536
commit
283baaa68f
4 files changed
+1658
-2067
No files matched your search
@@ -38,7 +38,7 @@ export default function aspectRatioMix(art, player) {
|
||||
}
|
||||
|
||||
$player.dataset.aspectRatio = ratio;
|
||||
notice.show(`${i18n.get('Aspect ratio')}: ${ratio}`);
|
||||
notice.show(`${i18n.get('Aspect ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`);
|
||||
art.emit('aspectRatioChange', ratio);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function playbackRateMix(art, player) {
|
||||
|
||||
$video.playbackRate = rate;
|
||||
$player.dataset.playbackRate = rate;
|
||||
notice.show(`${i18n.get('Rate')}: ${rate}x`);
|
||||
notice.show(`${i18n.get('Rate')}: ${rate === 1.0 ? i18n.get('Normal') : `${rate}x`}`);
|
||||
art.emit('playbackRateChange', rate);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user