We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shared/attributes/date_and_time
Dates helper hard-references multiple date formats, which would be nice to have localizable.
%B %-d
%B %-d, %Y
%l:%M %p
Today at {time}
Yesterday at {time}
{date} at {time}
Also t('global.formats.timestamp_unavailable') is used as a fallback if there is no timestamp.
t('global.formats.timestamp_unavailable')
Changes proposed:
global.dates.today
global.dates.yesterday
timestamp_date_and_time
formats.date_long
formats.time
dates: today: Today + yesterday: Yesterday day: one: 1 Day other: '%{count} Days' last_month: Last Month last_week: Last Week last_day: one: Last Day other: Last %{count} Days formats: timestamp_unavailable: Never + timestamp_date_and_time: '%{date} at %{time}' date: '%m/%d/%Y' date_and_time: '%m/%d/%Y %l:%M %p' + time: '%l:%M %p' + date_long: '%B %-d, %Y' + date_long_without_year: '%B %-d'
Relevant files:
The text was updated successfully, but these errors were encountered:
Hey, @lcorneliussen, this sounds like a reasonable proposal. I think we'd welcome a PR for it.
Sorry, something went wrong.
No branches or pull requests
Dates helper hard-references multiple date formats, which would be nice to have localizable.
%B %-d
for same year%B %-d, %Y
for different year%l:%M %p
for timeToday at {time}
as date replacement for todayYesterday at {time}
as date replacement for yesterday{date} at {time}
for date/time combinationAlso
t('global.formats.timestamp_unavailable')
is used as a fallback if there is no timestamp.Changes proposed:
global.dates.today
for todayglobal.dates.yesterday
for yesterdaytimestamp_date_and_time
to combine date and time%B %-d, %Y
asformats.date_long
and%B %-d
as formats.date_long_without_year%l:%M %p
asformats.time
Relevant files:
The text was updated successfully, but these errors were encountered: