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
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
I've been trying to implement date formatting using the DateStyle.Humanize style. I have been following the instructions in the readme file of that package.
This was my code I've been experimenting with:
From reading the Readme file, I've been expecting this to just work, and produce an opinionated date string that "Adheres to Polaris guidelines for dates with times".
However instead I get an empty string. I also get an error log:
MissingTranslationError: Missing translation for key: date.humanize.lessThanOneMinuteAgo in locale: en
at Object.translate
at I18n.translate
at I18n.humanizePastDate
at I18n.humanizeDate
at I18n.formatDate
at BulkDiscountCoupons
at renderWithHooks
at renderIndeterminateComponent
at renderElement
at renderNodeDestructiveImpl
From what I gather from this error, It expects me to provide the template for humanize myself. However this is not mentioned in the docs anywhere and I don't even know, how I should format it.
Is this a bug or an user error on my part? In the later case, it might be a good idea to update the documentation to be more clear about this.
The text was updated successfully, but these errors were encountered:
Overview
I've been trying to implement date formatting using the
DateStyle.Humanize
style. I have been following the instructions in the readme file of that package.This was my code I've been experimenting with:
From reading the Readme file, I've been expecting this to just work, and produce an opinionated date string that "Adheres to Polaris guidelines for dates with times".
However instead I get an empty string. I also get an error log:
From what I gather from this error, It expects me to provide the template for humanize myself. However this is not mentioned in the docs anywhere and I don't even know, how I should format it.
Is this a bug or an user error on my part? In the later case, it might be a good idea to update the documentation to be more clear about this.
The text was updated successfully, but these errors were encountered: