Auto update download links from GitHub releases#6
Merged
Conversation
…Forge On mount, fetch the latest release from the GitHub API and update each platform card with the direct asset URL, version, and file size. Falls back to the SourceForge latest-download URL if the request fails.
LanguageDetector ran synchronously at init, but Node.js (SSG build) has no navigator, so it fell back to English. The browser then detected the user's actual language and rendered different text, causing React hydration errors. Fix: remove LanguageDetector from init, lock initial language to 'en', and detect + apply browser language after mount.
cristian-tamblay
approved these changes
May 4, 2026
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.
This pull request updates the download section to fetch asset links dynamically from the GitHub API instead of using hardcoded URLs, and fixes a React hydration error caused by the i18n language detection setup.
Download link changes:
lib/github.tsutility that fetches the latest release from the GitHub API, maps assets by filename pattern to each platform, and formats file sizes.DownloadSectionto fetch the latest release on mount and update each platform card with the direct asset URL, version, and file size, falling back to SourceForge if the request fails.Hydration fix:
LanguageDetectorfrom the i18n initialization chain and set a fixed initial language of"en", so the SSG build and the initial client render always produce matching HTML.useEffectin the home page that detects the browser language after mount and callsi18n.changeLanguage(), preserving auto-detection without causing a hydration mismatch.