Skip to content

Conversation

@ANAMASGARD
Copy link

What this PR does

Adds the Chinese translation for the rate limiting documentation.

Why is it needed

Provides translated documentation for Chinese-speaking users, specifically addressing the global rate limit guide requested in #223.

Changes

  • Created i18n/zh/docusaurus-plugin-content-docs/current/application-layer/rate-limiting.md
  • Fully translated the content from the English version.

Fixes #223

This commit introduces the Chinese (zh) translation for the rate limiting
user guide, covering both local and global rate limiting scenarios.

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

netlify bot commented Dec 31, 2025

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 582e222
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/6955507331ea680008c3dd62
😎 Deploy Preview https://deploy-preview-262--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:

  • 582e222 docs: add Chinese translation for global rate limit guide
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 hzxuzhonghu 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!

此拉取请求旨在通过提供 Kmesh 限流指南的中文翻译来增强文档的可访问性。这对于中文用户来说至关重要,因为它使他们能够以母语理解和应用限流功能,从而提升用户体验并解决社区提出的特定需求。该翻译内容全面,涵盖了本地限流和全局限流的部署、配置和测试步骤。

Highlights

  • 文档翻译: 为限流指南添加了完整的中文翻译。
  • 解决问题: 此更改解决了 Add user guide for global rate limit #223 中提出的翻译需求,提升了中文用户的文档可访问性。
  • 新增文件: 创建了新的文档文件 i18n/zh/docusaurus-plugin-content-docs/current/application-layer/rate-limiting.md
  • 内容完整性: 新增的中文内容是英文版限流指南的完整翻译,涵盖了本地限流和全局限流的详细步骤和配置示例。

🧠 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 rate limiting documentation. The translation is generally well done. However, I've identified a couple of issues that need addressing. One is a command that will fail due to an incorrect reference, and the others are related to the use of absolute URLs that point to the English documentation instead of the corresponding Chinese pages. I have provided code suggestions to fix these issues.

Comment on lines +28 to +29
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v1.4.0" | kubectl create -f -; }

Choose a reason for hiding this comment

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

high

This command for installing the Gateway API CRDs has a couple of issues:

  1. The reference ref=v1.4.0 is not a valid tag or commit in the gateway-api repository, which will cause the kustomize command to fail.
  2. Using kubectl create is not idempotent and can cause errors if the CRDs already exist. It's better to use kubectl apply.

To fix this and ensure consistency with other documentation in the repository, please update the reference and use kubectl apply.

Suggested change
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v1.4.0" | kubectl create -f -; }
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=444631bfe06f3bcca5d0eadf1857eac1d369421d" | kubectl apply -f -; }


### 1. 部署 Kmesh 和 istiod(版本 1.24 或更高版本)

请阅读[快速入门](https://kmesh.net/docs/setup/quick-start)完成 Kmesh 的部署。

Choose a reason for hiding this comment

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

medium

The link to the quick start guide uses an absolute URL, which will direct users to the English version of the documentation. To ensure a consistent user experience within the translated documentation, it's best to use a relative path. Docusaurus will automatically resolve this to the correct localized page.

Suggested change
请阅读[快速入门](https://kmesh.net/docs/setup/quick-start)完成 Kmesh 的部署。
请阅读[快速入门](../setup/quick-start)完成 Kmesh 的部署。


### 1. 部署 Kmesh 和 istiod(版本 1.24 到 1.26)

请阅读[快速入门](https://kmesh.net/docs/setup/quick-start)完成 Kmesh 的部署。

Choose a reason for hiding this comment

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

medium

Similar to the previous comment, this link to the quick start guide uses an absolute URL that points to the English documentation. Please change it to a relative path to link to the Chinese version.

Suggested change
请阅读[快速入门](https://kmesh.net/docs/setup/quick-start)完成 Kmesh 的部署。
请阅读[快速入门](../setup/quick-start)完成 Kmesh 的部署。

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 comprehensive Chinese translation of the rate limiting documentation to improve accessibility for Chinese-speaking users.

  • Translates the complete rate limiting guide covering both local and global rate limiting features
  • Preserves all technical code examples, commands, and configuration snippets
  • Maintains consistent technical terminology throughout the translation

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

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 user guide for global rate limit

2 participants