!flDUDlxzYhNVyLEcSA:bonifacelabs.ca

Jellyfin Client Development

96 Members
Development discussion of Jellyfin client projects.  See the community for more rooms: +jellyfin:matrix.org19 Servers

Load older messages


SenderMessageTime
26 Jan 2021
@mrtimscampi:matrix.orgMrTimscampiBoth Firefox and Chrome16:10:17
@mrtimscampi:matrix.orgMrTimscampi

Not too sure what the cause is, but here's the traceback:

client.js?06a0:97 TypeError: locale.formatDistance is not a function
    at eval (index.js?5526:83)
    at Array.reduce (<anonymous>)
    at Module.formatDuration (index.js?5526:78)
    at Object.dateObj.<computed> [as formatDuration] (date-fns.js?ad3a:63)
    at VueComponent.getRuntimeTime (timeUtils.ts?4057:140)
    at Proxy.render (MediaInfo.vue?eefb:40)
    at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3548)
    at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4055)
    at Watcher.get (vue.runtime.esm.js?2b0e:4479)
    at new Watcher (vue.runtime.esm.js?2b0e:4468)
16:10:51
@ferferga:matrix.org@ferfergaNot here16:11:26
@ferferga:matrix.org@ferfergaI think it might be cookies16:11:32
@ferferga:matrix.org@ferfergaI changed i18n locale codes so it matches datefns16:11:44
@mrtimscampi:matrix.orgMrTimscampi

Removing this fixes it:

          locale: this.$i18n.locale
16:11:51
@ferferga:matrix.org@ferfergaSo English is now enUS instead of en16:11:57
@mrtimscampi:matrix.orgMrTimscampi
In reply to @ferferga:matrix.org
I think it might be cookies
It happens in an incognito session as well
16:12:09
@ferferga:matrix.org@ferferga
In reply to @mrtimscampi:matrix.org
It happens in an incognito session as well
Lol let me check, no issues here at all :(
16:12:29
@ferferga:matrix.org@ferfergaOkay no issue here in english either16:13:34
@ferferga:matrix.org@ferfergaMy guess is that display preferences has stored that your code is en instead of enUS16:13:47
@ferferga:matrix.org@ferfergaChanging to another language and switching back might fix it, could you try that please?16:14:05
@mrtimscampi:matrix.orgMrTimscampiIndeed, that was it16:14:22
@mrtimscampi:matrix.orgMrTimscampiSwitching back and forth fixed it16:14:27
@ferferga:matrix.org@ferfergaNot sure how I can avoid that while also providing translations. I found the current method to be the easiest to work with in the future16:16:57
@mrtimscampi:matrix.orgMrTimscampiYeah, it's fine 😛16:17:19
@ferferga:matrix.org@ferfergaWe don't have localised dates yet (aside from the one I used, that I could find) but in the future it might be a pita16:17:21
@mrtimscampi:matrix.orgMrTimscampiHm, future point for improving the queue dialog would be to use a virtual scroller for the list :/16:18:35
@mrtimscampi:matrix.orgMrTimscampiNot now though, let's get this merged as-is16:18:44
@mrtimscampi:matrix.orgMrTimscampiBut shuffling my entire library, opening the dialog basically brings the client to its knees16:18:59
@ferferga:matrix.org@ferfergaI know hahaha experienced that multiple times but no way to have it working16:20:47
@ferferga:matrix.org@ferfergaI have some ideas on how it can potentially work with draggable16:21:01
@ferferga:matrix.org@ferfergabut would need some investigations hehe16:21:15
@mrtimscampi:matrix.orgMrTimscampiThis might help: https://github.com/p-baleine/vue-draggable-virtual-scroll-list16:22:07
@mrtimscampi:matrix.orgMrTimscampiBut as said, let's do that later :p16:22:12
@ferferga:matrix.org@ferfergadidn't go for that basically because it didn't look so well maintained, so I wanted to try other tricks first with the "pure vue draggable" solution16:23:31
@ferferga:matrix.org@ferfergabut if I can't get it to work, I guess it will be our only option16:23:43
@mrtimscampi:matrix.orgMrTimscampiFor sure, I was mainly think we could use it as an inspiration :p16:24:04
@mrtimscampi:matrix.orgMrTimscampiVuetify has a virtual scroller for lists too, so we might be able to hook them up16:24:26
@ferferga:matrix.org@ferfergaYeah I tried both Vuetify's and the one we have for libraries already (recycle, not dynamic one though, that one might improve things)16:25:34

There are no newer messages yet.


Back to Room List