"Last updated x minutes ago" fails for Maori, Samoan, and Tongan language #172
Labels
advanced
Probably requires some experience developing Vaxx.nz? Pick it if you had a successful PR!
bug
Something isn't working
help wanted
Extra attention is needed
Describe the bug
Due to our date library
date-fns
's lack of support formi
/sm
/to
support, we need to find a way to make the experience consistent for these vital locales (in particular Te Reo Maori) before we can ship it.As you can see, the second part of the sentence "Last updated 34 minutes ago" fails as the locale is not yet supported when passed to
date-fns
'sformatDistance
function. This happens with Samoan, Tongan, and Maori.Proposed solution
date-fns
library GitHub for the world to use.How to add a new Locale to
date-fns
: https://github.com/date-fns/date-fns/blob/master/docs/i18n.md#adding-new-languageIssue (request to
date-fns
): date-fns/date-fns#2627The text was updated successfully, but these errors were encountered: