diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 918d901e..30579e88 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -130,6 +130,10 @@ export default Vue.extend({ return this.$store.getters.getCurrentInvidiousInstance }, + currentLocale: function () { + return this.$store.getters.getCurrentLocale + }, + profileList: function () { return this.$store.getters.getProfileList }, @@ -227,9 +231,9 @@ export default Vue.extend({ dateString() { const date = new Date(this.published) - const dateSplit = date.toDateString().split(' ') - const localeDateString = `Video.Published.${dateSplit[1]}` - return `${this.$t(localeDateString)} ${dateSplit[2]}, ${dateSplit[3]}` + const locale = this.currentLocale.replace('_', '-') + const localeDateString = new Intl.DateTimeFormat([locale, 'en'], { dateStyle: 'medium' }).format(date) + return `${localeDateString}` }, publishedString() { diff --git a/src/renderer/store/modules/ytdl.js b/src/renderer/store/modules/ytdl.js index f3addc75..db8895db 100644 --- a/src/renderer/store/modules/ytdl.js +++ b/src/renderer/store/modules/ytdl.js @@ -288,7 +288,9 @@ const actions = { break } } + const locale = settings.currentLocale.replace('-', '_') ytpl(playlistId, { + hl: locale, limit: 'Infinity', requestOptions: { agent } }).then((result) => {