i18n改用json格式

This commit is contained in:
Harvey Zack committed 2019-05-06 09:12:36 +08:00
1 parent ffd7a38b35
commit 0bc9c88af2
18 files changed
+211 -184

No files matched your search

@@ -1,4 +1,4 @@
import { secondToTime, downloadImage } from '../utils';
import { secondToTime, downloadFile } from '../utils';
export default function screenshotMix(art, player) {
const {
@@ -46,7 +46,7 @@ export default function screenshotMix(art, player) {
value: () => {
const dataUri = player.getScreenshotDataURL();
if (dataUri) {
downloadImage(dataUri, `${option.title || 'artplayer'}_${secondToTime($video.currentTime)}.png`);
downloadFile(dataUri, `${option.title || 'artplayer'}_${secondToTime($video.currentTime)}.png`);
art.emit('screenshot', dataUri);
}
},