Skip to content

feat(city): show localized last-updated timestamp - #14

Merged
Guria merged 1 commit into
mainfrom
feature/city-updated-at
Sep 9, 2026
Merged

feat(city): show localized last-updated timestamp#14
Guria merged 1 commit into
mainfrom
feature/city-updated-at

Conversation

@vekilibot

@vekilibot vekilibot Bot commented Sep 9, 2026

Copy link
Copy Markdown

Restores the last-updated timestamp in the site-header meta line, removed in #11.

  • Re-adds locale-aware formatUpdatedAt (Europe/Istanbul, long date + short time) in i18n
  • Re-adds lastUpdated strings for tr/en/ru/de
  • CityPage header now reads e.g. 40 nöbetçi eczane · Son güncelleme: 9 Ağustos 2026 10:11

Agent work, committed as apphane.

- Format data.updatedAt in Europe/Istanbul for each locale
@vekilibot vekilibot Bot changed the title perm probe feat(city): show localized last-updated timestamp Sep 9, 2026
@vekilibot
vekilibot Bot marked this pull request as ready for review September 9, 2026 14:54
@Guria
Guria requested a lite review from Copilot September 9, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 lastUpdated label to the i18n Strings contract and provided translations for tr/en/ru/de.
  • Introduced formatUpdatedAt(iso, locale) to format ISO timestamps as long date + short time in Europe/Istanbul.
  • Updated CityPage.astro to 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.

@Guria
Guria merged commit 25e4ce6 into main Sep 9, 2026
1 check passed
@Guria
Guria deleted the feature/city-updated-at branch September 9, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants