Skip to content

Add "last updated" stat to German and Chinese locales#51

Merged
Creylay merged 2 commits into
mainfrom
fix/de-zh-missing-hero-stat-updated
Jul 8, 2026
Merged

Add "last updated" stat to German and Chinese locales#51
Creylay merged 2 commits into
mainfrom
fix/de-zh-missing-hero-stat-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 f7d8cd7 into main Jul 8, 2026
2 of 3 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