add multilanguage/multi time zone support

This commit is contained in:
hanyixuanten
2026-07-20 19:26:15 +08:00
parent 41bbe9533c
commit 6dbebd1aa5
4 changed files with 211 additions and 32 deletions
+1
View File
@@ -14,6 +14,7 @@ Guidance for AI coding agents working in this repository.
- Actions side: update contest data only. Change `.github/workflows/deploy.yml` when editing schedule triggers, Python version, dependency installation, generated files to commit, or commit/push behavior.
- Data-fetch side: change `fetch_contests.py` when editing providers, normalization, filtering, output JSON shape, or output file policy.
- Server side: change `server/index.php` when editing presentation, caching, raw JSON URL, platform labels/classes, countdown behavior, or PHP deployment behavior. The current page requires PHP 5.4 or newer.
- Server localization: `server/index.php` detects browser/system language and time zone, syncs them to cookies, and uses those cookies for first-render localized text and contest times.
- Do not put scraping logic in `server/index.php`; keep upstream fetching in `fetch_contests.py` so Actions can generate static JSON.
## Adding or Removing a Contest Provider