Skip to content

Commit

Permalink
feat: add ugoira mp4 link
Browse files Browse the repository at this point in the history
  • Loading branch information
asadahimeka committed May 19, 2023
1 parent 73a9c23 commit 2c12ccb
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"i18n-ally.localesPaths": ["src/locales"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.sourceLanguage": "zh-Hans",
"i18n-ally.keystyle": "nested"
}
3 changes: 2 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"tip": "Bitte spielen Sie zuerst die Animation ab"
},
"webm": "Hohe Qualität, schlechte Kompatibilität",
"zip": "Rohsequenz-Frame-Archiv"
"zip": "Rohsequenz-Frame-Archiv",
"mp4": "Gehen Sie zum Konvertieren zu ugoira.com"
},
"share": {
"of_art": "'s Kunstwerke",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"tip": "Please play the animation first"
},
"webm": "High quality, poor compatibility",
"zip": "Raw Sequence Frame Archive"
"zip": "Raw Sequence Frame Archive",
"mp4": "Go to ugoira.com to convert"
},
"share": {
"of_art": "'s Artworks",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"tip": "Veuillez d'abord jouer l'animation"
},
"webm": "Haute qualité, mauvaise compatibilité",
"zip": "Archive de trame de séquence brute"
"zip": "Archive de trame de séquence brute",
"mp4": "Allez sur ugoira.com pour convertir"
},
"share": {
"of_art": "Oeuvres de",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"tip": "Riproduci prima l'animazione"
},
"webm": "Alta qualità, scarsa compatibilità",
"zip": "Archivio frame di sequenza non elaborato"
"zip": "Archivio frame di sequenza non elaborato",
"mp4": "Vai su ugoira.com per convertire"
},
"fav_fail": "Aggiunta ai segnalibri non riuscita",
"share": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"tip": "最初にアニメーションを再生してください"
},
"webm": "高品質、互換性が悪い",
"zip": "生のシーケンス フレーム アーカイブ"
"zip": "生のシーケンス フレーム アーカイブ",
"mp4": "変換するには、ugoira.com にアクセスしてください"
},
"share": {
"of_art": "さんの作品",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"tip": "먼저 애니메이션을 재생하세요."
},
"webm": "고품질, 호환성이 좋지 않음",
"zip": "원시 시퀀스 프레임 아카이브"
"zip": "원시 시퀀스 프레임 아카이브",
"mp4": "변환하려면 ugoira.com으로 이동하세요."
},
"share": {
"of_art": "님의 작품",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"tip": "Пожалуйста, сначала включите анимацию"
},
"webm": "Высокое качество, плохая совместимость",
"zip": "Архив кадров необработанной последовательности"
"zip": "Архив кадров необработанной последовательности",
"mp4": "Перейдите на ugoira.com, чтобы конвертировать"
},
"share": {
"of_art": "произведения искусства",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"placeholder": "请选择下载格式",
"ugoira": {
"tip": "请先播放动图"
}
},
"mp4": "前往 ugoira.com 进行转换"
},
"share": {
"title": "立即分享给好友",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"tip": "請先播放動圖"
},
"webm": "高畫質,兼容性差",
"zip": "原始序列幀歸檔文件"
"zip": "原始序列幀歸檔文件",
"mp4": "前往 ugoira.com 進行轉換"
},
"share": {
"of_art": "的作品",
Expand Down
4 changes: 4 additions & 0 deletions src/views/Artwork/components/ImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ export default {
this.downloadWebM()
break
case 'MP4':
window.open(`https://ugoira.com/i/${this.artwork.id}`, '_blank', 'noopener')
break
default:
break
}
Expand Down
1 change: 1 addition & 0 deletions src/views/Artwork/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const ugoiraDownloadPanelActions = [
{ name: 'ZIP', subname: i18n.t('artwork.download.zip') },
{ name: 'GIF', subname: i18n.t('artwork.download.gif') },
{ name: 'WebM', subname: i18n.t('artwork.download.webm') }, // chrome only
{ name: 'MP4', subname: i18n.t('artwork.download.mp4') },
]
const shareOptions = [
Expand Down

0 comments on commit 2c12ccb

Please sign in to comment.