Closed codesxt closed 4 years ago
I just realized that the error is solved by adding 'formatDuration'
to the twoParams array in the file @nuxtjs/date-fns/lib/plugin.js
.
I'll add a PR to add that.
Thanks @codesxt
@ricardogobbosouza Will this be in a new version soon? Just to know.
@codesxt release v1.4.0
I'm working with several dates in Spanish with the 'es' locale. Most of them are working fine, like 'formatDistanceToNow' which gives me the date distance in proper Spanish. But when I call 'formatDuration' it gives me the result in English.
When I force the locale using
$dateFns.formatDuration(duration, { locale: 'es' })
it gives me the following rendering error:I'm using:
Locale objects are being properly loaded from date-fns so the problem must be in this plugin.