Add Simplified Chinese (ZH) language support with CJK font fix across all pages#37
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@copilot Also make the buttons work for the impressum and DATENSCHUTZ site |
Co-authored-by: devNull-bootloader <189463177+devNull-bootloader@users.noreply.github.com>
Co-authored-by: theodorismmmm <168644391+theodorismmmm@users.noreply.github.com>
Done in commit |
|
@copilot Why does it look like white boxes in the screenshots? Btw how can I coauthor this PR? I wanna ge that achievement. |
Co-authored-by: devNull-bootloader <189463177+devNull-bootloader@users.noreply.github.com>
The white boxes appeared because Inter (the site's font) has no CJK glyphs — the browser couldn't render Chinese characters. Fixed in |

The site only supported EN/DE. This adds ZH as a third locale across all pages, with
localStorage-backed preference persistence, and fixes CJK glyph rendering that caused Chinese text to appear as white boxes.Changes
ZHbutton alongsideEN/DEonindex.html,impressum.html, anddatenschutz.htmlzhtranslation object inindex.htmlcovering header, features, support form (placeholders, price estimates, discount codes), footer, changelog (年/月date format), and reviews; equivalent content translated inimpressum.htmlanddatenschutz.htmllocalStorage; all pages read it on load so switching on one page persists site-wideInterhas no CJK glyphs; addedNoto Sans SCto the Google Fonts request and inserted it into thefont-familystack on all three pages, eliminating the white-box fallbackMain page (ZH):

Impressum page (ZH):

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.