You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Moment plugin works in my Nuxt app, however I'm attempting to customize labels for .fromNow() to be shorter. To do this many people recommend making use of custom locale's, like below.
Fails:
When using .fromNow( updateLocale(...
I get an error:
updateLocale is not defined
Works:
When using .fromNow() as is, there's no issue, however there's no point as no customization occurs!
This Moment plugin works in my Nuxt app, however I'm attempting to customize labels for .fromNow() to be shorter. To do this many people recommend making use of custom locale's, like below.
Fails:
When using
.fromNow( updateLocale(...
I get an error:
Works:
When using
.fromNow()
as is, there's no issue, however there's no point as no customization occurs!Vue template:
{{ getDateFrom(conv.lastMessage.editedAt ? conv.lastMessage.editedAt : conv.lastMessage.createdAt) }}
Custom function:
The text was updated successfully, but these errors were encountered: