Skip to content

Add last updated date to hero stats in German and Chinese locales #49

Merged
Creylay merged 1 commit into
mainfrom
feat/hero-stats-last-updated
Jul 8, 2026
Merged

Add last updated date to hero stats in German and Chinese locales #49
Creylay merged 1 commit into
mainfrom
feat/hero-stats-last-updated

Conversation

@Creylay

@Creylay Creylay commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

de and zh were left incomplete after the "hero stats last updated" feature was merged into main (that PR landed after both locale PRs), plus a related bug in how release dates are formatted for languages without a hardcoded month list.

Changes

  • public/locales/de/home.json / public/locales/zh/home.json: added the missing hero.stat.updated key ("Letzte Aktualisierung: {{date}}" / "最后更新:{{date}}").
  • components/community/routes/HomeRoute.tsx: fmtDate() (used for GitHub release dates in the activity section) hardcoded month abbreviations only for es/en/pt and silently fell back to Spanish for any other language. Now it falls back to Intl/toLocaleString for languages without an explicit entry, so de/zh (and any future locale) format correctly — e.g. deMai 2026, zh2026年5月 (correct year-first order) instead of the Spanish may 2026. es/en/pt output is unchanged.

@Creylay
Creylay merged commit 5fa8d76 into main Jul 8, 2026
2 checks passed
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.

1 participant