Skip to content

Add Chinese translation for docs and changelog generate imporve#33

Closed
WheheoHu wants to merge 4 commits intomainfrom
dev
Closed

Add Chinese translation for docs and changelog generate imporve#33
WheheoHu wants to merge 4 commits intomainfrom
dev

Conversation

@WheheoHu
Copy link
Collaborator

No description provided.

@WheheoHu WheheoHu requested review from OwenYou and Copilot October 21, 2025 04:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Chinese translation support for the documentation and improves the changelog generation by standardizing the format.

  • Adds comprehensive Chinese (Simplified) translations for all documentation pages
  • Migrates changelog from ChangeLog.md to CHANGELOG.md following Keep a Changelog format
  • Updates documentation build system to support multiple languages
  • Adds new dependencies (myst-parser, sphinx-intl) for translation support

Reviewed Changes

Copilot reviewed 18 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pyproject.toml Adds myst-parser and sphinx-intl dependencies for documentation translation support
docs/locale/zh_CN/LC_MESSAGES/*.po Complete Chinese translations for installation, quickstart, user guide, contributing, changelog, API reference, and README documentation
docs/contributing.rst Updates contributing guide with translation workflow and replaces pip commands with uv
docs/conf.py Adds internationalization configuration including language support, locale directories, and language switcher
docs/changelog.rst Simplifies to include CHANGELOG.md using myst-parser
docs/Makefile Adds i18n build targets for generating translation files and building multi-language documentation
ChangeLog.md Deletes old changelog file
CHANGELOG.md Creates new standardized changelog following Keep a Changelog format
.github/workflows/docs.yml Updates workflow to build all language versions of documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- Extended validation and error handling
- Additional utility functions for common workflows
.. include:: ../CHANGELOG.md
:parser: myst_parser.sphinx_
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parser reference 'myst_parser.sphinx_' is incorrect and has a trailing underscore. It should be 'myst_parser.sphinx_parser'.

Suggested change
:parser: myst_parser.sphinx_
:parser: myst_parser.sphinx_parser

Copilot uses AI. Check for mistakes.
Comment on lines +94 to +97
"switcher": {
"json_url": "https://owenyou.github.io/dftt_timecode/_static/switcher.json",
"version_match": os.environ.get("READTHEDOCS_LANGUAGE", language),
},
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The module 'os' is used but not imported at the top of the configuration file. Add 'import os' to the imports.

Copilot uses AI. Check for mistakes.
@WheheoHu WheheoHu closed this Oct 21, 2025
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