Shopify / quilt

A loosely related set of packages for JavaScript/TypeScript projects at Shopify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Missing translation for key: date.humanize.lessThanOneYearAway in locale: en

therealtgd opened this issue · comments

When using i18n.formatDate() from @shopify/react-i18n I am getting the error from the title.

Here is the code sandbox with the described issue.

It was an error on my side :D

Hey Mate, can you tell me how'd you resolve this issue? I am getting same and though i understand adding locale should do the job ideally but I wanted to use elements like 'Just now' or 'Yesterday at 10:12 am'

I am guessing that has to be done using locale as well but are there any documentation present which can help me work through this?