Skip to content

docs(zh-cn): translate docs to Simplified Chinese - #23

Open
nulijiazaizhong wants to merge 1 commit into
TrucklineMP:mainfrom
nulijiazaizhong:main
Open

nulijiazaizhong wants to merge 1 commit into
TrucklineMP:mainfrom
nulijiazaizhong:main

Conversation

@nulijiazaizhong

Copy link
Copy Markdown

Summary

Adds a complete Simplified Chinese (zh-CN) translation of the documentation, using the current English pages as the source.
all 64 documentation pages are translated.

Pages added

All pages below were added under src/content/docs/zh-cn/, at the same relative paths as their English sources:

  • Homepage: index.mdx
  • Game modules:
    • game-docs/index.mdx
    • game-sdk/index.mdx
  • Web API:
    • web-api/console.mdx
    • web-api/i18n-translations.mdx
    • web-api/leaked-secrets.mdx
    • web-api/oauth-apps.mdx
    • web-api/overview.mdx
    • web-api/public-api.mdx
    • web-api/public-api/doc.mdx
    • web-api/sdk-contributing.mdx
    • web-api/sdk.mdx
    • web-api/webhooks.mdx
  • Web Docs:
    • All 16 pages under web-docs/account/
    • All 3 pages under web-docs/contribute/
    • All 4 pages under web-docs/discord-bot/
    • All 4 pages under web-docs/platform/
    • All 4 pages under web-docs/vtc-programs/
    • All 18 pages under web-docs/vtc/

Supporting updates

  • Registered zh-cn / zh-CN in src/lib/locales.mjs.
  • Added Simplified Chinese labels for all sidebar sections, groups, and pages in src/lib/sidebar.mjs.
  • Documented the zh-cn folder and zh-CN language tag in CONTRIBUTING.md.

Translation notes

  • Translated from the current English source pages only.
  • Each page's version was copied from its English source; lastUpdated was set to the translation date.
  • Internal links use the /zh-cn/ prefix, and heading anchors match the translated headings.
  • Relative import and asset paths were adjusted for the additional locale directory level.
  • URLs, code, API fields, file paths, component settings, Discord links, and the names VTC, VBC, and TrucklineMP were intentionally left unchanged, as required by the contribution guide.

Verification

  • npm run validate — passed, 0 errors. The 14 warnings concern pre-existing outdated translations in other languages.
  • npm run check — passed, 0 errors.
  • npm run build — passed; 641 pages built and all internal links and anchors validated.

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.

1 participant