feat(city): show localized last-updated timestamp - #14
Merged
Conversation
- Format data.updatedAt in Europe/Istanbul for each locale
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The changes are small, consistent with existing locale handling, and safely integrate an ISO-based timestamp into the CityPage header.
Pull request overview
This PR restores a localized “last updated” timestamp in the city page header meta line, using locale-aware formatting while standardizing the displayed timezone to Europe/Istanbul.
Changes:
- Added
lastUpdatedlabel to the i18nStringscontract and provided translations fortr/en/ru/de. - Introduced
formatUpdatedAt(iso, locale)to format ISO timestamps as long date + short time inEurope/Istanbul. - Updated
CityPage.astroto render{onDutyCount} · {lastUpdated}: {formattedTimestamp}in the header meta line.
File summaries
| File | Description |
|---|---|
| src/lib/i18n.ts | Adds the lastUpdated string and a locale/timezone-aware timestamp formatter used by the UI. |
| src/components/CityPage.astro | Re-introduces the header meta timestamp display using the new i18n label and formatter. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restores the last-updated timestamp in the site-header meta line, removed in #11.
formatUpdatedAt(Europe/Istanbul, long date + short time) in i18nlastUpdatedstrings for tr/en/ru/de40 nöbetçi eczane · Son güncelleme: 9 Ağustos 2026 10:11Agent work, committed as apphane.