Skip to content

Conversation

@ANAMASGARD
Copy link

Adds Chinese (zh) translation for the circuit breaker documentation.

  • Added i18n/zh/.../application-layer/circuit-breaker.md
  • Fully translated all content (title, steps, comments, descriptions)

Fixes #224

This commit adds the Chinese (zh) translation of the circuit breaker
documentation to complete the i18n coverage for this feature.
Fixes: kmesh-net#224

Signed-off-by: Gauarv Chaudhary <chaudharygaurav2004@gmail.com>
Copilot AI review requested due to automatic review settings December 31, 2025 16:21
@netlify
Copy link

netlify bot commented Dec 31, 2025

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit cdd4283
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/69554d93a54fbd0008779011
😎 Deploy Preview https://deploy-preview-261--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kmesh-bot
Copy link
Collaborator

Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages.

The list of commits with invalid commit messages:

  • cdd4283 docs: add Chinese translation for circuit breaker document
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yaozengzeng for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gemini-code-assist
Copy link

Summary of Changes

Hello @ANAMASGARD, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new Chinese translation for the circuit breaker documentation, significantly enhancing accessibility for Chinese-speaking users. The added document provides a comprehensive, step-by-step guide to understanding and implementing Kmesh's circuit breaker feature, from initial setup and configuration to verifying its functionality through practical examples. This ensures that users can effectively leverage circuit breaking within their Kmesh environments with clear, localized instructions.

Highlights

  • New Chinese Translation: A new document has been added providing a complete Chinese translation for the circuit breaker documentation.
  • Comprehensive Guide: The translated document offers a step-by-step guide on how to test Kmesh's circuit breaker functionality, covering deployment, configuration, and verification.
  • Detailed Instructions: It includes instructions for deploying Kmesh, fortio, and httpbin, configuring Kubernetes Gateway API CRDs and Waypoints, setting up DestinationRules, and observing circuit breaker behavior with traffic generation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds the Chinese translation for the circuit breaker documentation. The overall translation quality is good. However, there are a few minor issues. A comment block within the fortio-deploy Deployment was not translated. Additionally, there are a couple of code blocks with an extra space before the language identifier. I've provided specific suggestions to address these points. After fixing these, the document will be in great shape.


## 步骤 2. 部署 fortio 和 httpbin

``` sh

Choose a reason for hiding this comment

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

medium

There is an extra space before the language identifier sh for this code block. For consistency with other code blocks in the document, it should be removed.

Suggested change
``` sh
```sh

Comment on lines +42 to +44
# This annotation causes Envoy to serve cluster.outbound statistics via 15000/stats
# in addition to the stats normally served by Istio. The Circuit Breaking example task
# gives an example of inspecting Envoy stats via proxy config.

Choose a reason for hiding this comment

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

medium

This comment block has not been translated. According to the PR description, all content should be translated. Please translate this comment to Chinese for completeness and consistency.

Suggested change
# This annotation causes Envoy to serve cluster.outbound statistics via 15000/stats
# in addition to the stats normally served by Istio. The Circuit Breaking example task
# gives an example of inspecting Envoy stats via proxy config.
# 此注解使 Envoy 通过 15000/stats 提供 cluster.outbound 统计信息,
# 这是对 Istio 通常提供的统计信息的补充。熔断示例任务
# 提供了一个通过代理配置检查 Envoy 统计信息的示例。


首先,如果您尚未安装 Kubernetes Gateway API CRD,请运行以下命令进行安装。

``` sh

Choose a reason for hiding this comment

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

medium

There is an extra space before the language identifier sh for this code block. For consistency with other code blocks in the document, it should be removed.

Suggested change
``` sh
```sh

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 a complete Chinese translation of the circuit breaker documentation to support Chinese-speaking users. The translation covers all steps for testing Kmesh's circuit breaking functionality, from deployment to observing the behavior.

  • Translates the circuit breaker guide into Chinese (zh)
  • Maintains consistent technical terminology with other Chinese documentation
  • Preserves all commands, YAML configurations, and code examples

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +44
# This annotation causes Envoy to serve cluster.outbound statistics via 15000/stats
# in addition to the stats normally served by Istio. The Circuit Breaking example task
# gives an example of inspecting Envoy stats via proxy config.
Copy link

Copilot AI Dec 31, 2025

Choose a reason for hiding this comment

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

The English comments inside the YAML configuration (lines 42-44) should be translated to Chinese for consistency with the rest of the document. These comments explain the purpose of the annotation and should be localized like other text in this translation.

Suggested change
# This annotation causes Envoy to serve cluster.outbound statistics via 15000/stats
# in addition to the stats normally served by Istio. The Circuit Breaking example task
# gives an example of inspecting Envoy stats via proxy config.
# 该注解会让 Envoy 通过 15000/stats 暴露 cluster.outbound 相关统计数据
# 除了 Istio 默认提供的统计信息之外,“熔断”示例任务
# 还演示了如何通过 proxy config 查看 Envoy 的统计数据。

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add circuit breaker document

2 participants