Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 29, 2025

This PR reviews and updates the Chinese translations in locales/docs/typst-docs.toml and related detailed TOML files to properly annotate the destructure, destructured, and binding terms according to the localization guidelines.

Changes Made

Added New Terms to Reference

  • Added destructure → "解构" to docs/terms.toml
  • Added destructured → "被解构的" to docs/terms.toml
  • Added binding → "绑定" to docs/terms.toml

Updated Translation Files

Updated 6 TOML files with proper term annotations following the format 「translated_term」([original_term](#x-term-original_term)):

Main translations file (typst-docs.toml):

  • Fixed array enumeration description to properly annotate "destructured" and "binding" terms
  • Updated page binding descriptions in margin contexts
  • Ensured only first occurrence of each term is annotated per text block

Detailed files:

  • reference.scripting.body.toml: Updated bindings and destructuring section titles and content
  • reference.syntax.body.toml: Annotated "binding" in syntax reference table
  • tutorial.advanced-styling.body.toml: Annotated "bound" in variable binding context
  • reference.svg.svg.details.toml: Annotated "binding" in resolution independence context

Translation Guidelines Followed

  • Only the first occurrence of each term is annotated within each translation text
  • Used proper Chinese quotation marks「」for technical terms
  • Maintained original technical accuracy and meaning
  • Distinguished between different contexts (let binding vs page binding vs operator precedence)

All TOML files validate correctly after the changes.

Fixes #27.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…ization files

Co-authored-by: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>
Copilot AI changed the title [WIP] Review locales/docs/typst-docs.toml - destructured and binding term docs: Add term annotations for destructure and binding terms in localization files Aug 29, 2025
Copilot AI requested a review from Myriad-Dreamin August 29, 2025 22:30
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.

Review locales/docs/typst-docs.toml - destructured and binding term

2 participants