Localize durations and update dependencies

This commit is contained in:
root
2023-03-25 07:47:07 +05:30
parent 073182a10d
commit ecb4e853e4
10 changed files with 69 additions and 49 deletions
+1 -3
View File
@@ -12,15 +12,13 @@
</template>
<script>
import formatDuration from 'format-duration'
export default {
name: 'VideoChapters',
props: ['chapters'],
computed: {
humanizedChapters () {
return this.chapters.map(ch => {
ch.humanizedStart = formatDuration(ch.start * 1000)
ch.humanizedStart = this.$store.getters['i18n/fmtDuration'](ch.start)
return ch
})
}
+1 -4
View File
@@ -27,7 +27,7 @@
{{ video.uploadedDate }}
</span>
<br/>
{{ timeFormat(video.duration) }}
{{ $store.getters['i18n/fmtDuration'](video.duration) }}
</v-card-text>
<slot name="bottom" />
</v-card>
@@ -102,9 +102,6 @@ export default {
this.alreadyWatched = false
}
}
},
timeFormat (...args) {
return LibPiped.timeFormat(...args)
}
}
}