Repository navigation
Conversation
… Compressor - scripts/build_zh.py builds /zh/<tool>/ from the English page with a translation table per page (stops if an English string changed, lists any English left); adds hreflang and the 中文/EN switch on both versions; puts the Chinese navigation and footer, with links to Chinese pages where they exist, on every Chinese page including the hand-made /zh/ and /zh/converter/. - og/zh-*.png previews; sitemap (4 URLs), llms.txt, README, changelog. - Helper and "continue with this file" link to the Chinese tools on Chinese pages; audio-export.js says "正在编码 MP3…" there. - Text to Speech (both languages): voices that run online (localService false, e.g. Chrome's "Google" voices) are marked, and the copy no longer claims the text never leaves the device; the Chinese page starts on Chinese voices and shows language names in the page's language. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016rsS6JgzjZXLy17J1cgACN
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.
Targets
mainand contains #17 (the batch branch), so merging only this PR lands both; if #17 is merged first, this diff shrinks to the Chinese pages.Why
GA4, last 4 weeks: about 43% of visitors are in China (cn.bing.com, Doubao), and the Chinese homepage is the third most viewed page, but only the converter had a Chinese version; others reached English pages through browser translation.
What changes
/zh/volume-booster/,/zh/text-to-speech/,/zh/audio-joiner/,/zh/audio-compressor/: same code as the English pages, Chinese text (UI, alerts, progress, batch labels, SEO text, FAQ; JSON-LD regenerated from the visible FAQ),inLanguage: zh-CN, own OG previews./zh/(tool grid) and/zh/converter/.localService === false, e.g. Chrome's "Google" voices) are marked "online / 在线", and the copy says the text is never sent to AudioTools.dev rather than "never leaves the device". The Chinese page starts on Chinese voices.How it stays in sync
scripts/build_zh.pygenerates the four pages from the English ones with translation tables. If an English string changes, it stops and names it, and after building it lists any English left on a Chinese page./zh/and/zh/converter/stay hand-maintained; the script only updates their navigation, footer and tool links. README documents it (build_zh.py, thenseo_sync.py).Checks (headless Chromium)
zh_e2e: booster normalize + MP3 download + GA event + Chinese support line; next steps go to Chinese pages; joiner 2 files; compressor single and batch (ZIP of 2); TTS renders;/zh/helper "压缩到1MB" + file →/zh/audio-compressor/with 192 kbps applied; language switch both ways; no page errors.seo_sync.py --checkOK.Generated by Claude Code