Skip to content

Add zh-CN redesigned homepage translations, prune unused keys - #1312

Merged
itsneufox merged 5 commits into
openmultiplayer:masterfrom
dockfries:zh
Nov 27, 2026
Merged

itsneufox merged 5 commits into
openmultiplayer:masterfrom
dockfries:zh

Conversation

@dockfries

Copy link
Copy Markdown
Contributor

zh-CN homepage

  • Translate the new hero, version badge, launcher and server feature cards, platform
    legend, meta description, social labels, join-dialog sample name, and NPC state labels.
  • Update the zh-CN interior ID page names.

Translation cleanup

  • Remove 57 unused code.json keys (1,258 entries across 24 locales): 16 legacy footer
    labels, 6 navbar labels, 14 old homepage announcement strings, 10 previous feature-card
    strings, 7 old homepage hero/CTA strings, 2 retired serverInfo fields, and 2 obsolete
    labels (partners.note.dismiss, servers.filter.showPartnersOnly).
  • Normalize zh-CN translator descriptions to English and sync the generated
    description/key set.
  • Translate the five newly extracted strings (noscript.*, serverRow.addressColumn).

Extraction and docs

  • Fix write-translations extraction warnings: use the default Translate import instead
    of { default as Translate }, make the homepage social labels statically extractable,
    and drop the stale item.label.Donate navbar key.
  • npm run write-translations -- --locale zh-CN now leaves the worktree clean on a second
    run.
  • Rewrite frontend/README.md: document the code.json workflow, clarify that start
    takes one locale while build accepts several, and explain single-locale builds and
    agent-build behavior.

Add the new hero, launcher and server feature copy, localize the join dialog sample name and NPC state labels, and refresh the reused homepage strings for zh-CN.
Drop 57 stale keys from the locale files: legacy footer and navbar keys, the removed announcement strings, old homepage and feature copy, and two retired UI labels. Removes 1,258 entries across the 24 code.json files.
Add a README section on how code.json is generated and what description is for. Normalize zh-CN's translator descriptions to English, make the remaining strings statically extractable, drop the stale navbar Donate label, and sync the locale with the complete extracted key set so write-translations is a no-op afterward.
Remove duplicated install and development instructions, correct the single-locale build command, and organize the remaining sections by task.
@itsneufox
itsneufox merged commit f308d61 into openmultiplayer:master Nov 27, 2026
1 check 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.

2 participants