# Code of Conduct / 行为准则

> This project adopts the [Contributor Covenant v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) Code of Conduct.
> 本项目采用 [Contributor Covenant v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) 行为准则。

## Our Pledge / 我们的承诺

We as members, contributors, and maintainers pledge to make participation in our project and community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

为了营造开放、友好的环境，作为贡献者和维护者，我们承诺让参与本项目和社区的每个人都不会因为年龄、体型、可见或不可见的残疾、族裔、性别特征、性别认同与表达、经验水平、教育背景、社会经济地位、国籍、个人形象、种族、宗教信仰或性认同与取向而受到骚扰。

我们承诺以促进开放、欢迎、多元、包容和健康社区的方式行事和互动。

## Our Standards / 我们的标准

**Examples of behavior that contributes to a positive environment** / **有助于营造积极环境的行为示例**：

- Demonstrating empathy and kindness toward other people
  对他人表达同理与善意
- Being respectful of differing opinions, viewpoints, and experiences
  尊重不同的意见、观点与经验
- Giving and gracefully accepting constructive feedback
  给予并优雅地接受建设性反馈
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
  为我们的错误承担责任并向受影响者道歉，并从中学习
- Focusing on what is best not just for us as individuals, but for the overall community
  关注的不只是个人最佳利益，而是整个社区的最佳利益

**Examples of unacceptable behavior** / **不可接受的行为示例**：

- The use of sexualized language or imagery, and sexual attention or advances of any kind
  使用性化语言或图像，以及任何形式的性关注或挑逗
- Trolling, insulting or derogatory comments, and personal or political attacks
  嘲讽、侮辱或贬低性评论，以及人身或政治攻击
- Public or private harassment
  公开或私下的骚扰
- Publishing others' private information, such as a physical or email address, without their explicit permission
  未经明确许可发布他人私人信息，如住址或电子邮件
- Other conduct which could reasonably be considered inappropriate in a professional setting
  在专业场合中合理判断为不当的其他行为

## Enforcement Responsibilities / 执法责任

Community maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. They have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct.

社区维护者负责澄清并执行我们的可接受行为标准。对于他们认为不当、具有威胁性、攻击性或有害的任何行为，社区维护者有权利和责任移除、编辑或拒绝评论、提交、代码、wiki 编辑、issue 和其他贡献。

## Scope / 适用范围

This Code of Conduct applies within all project spaces, and also applies when an individual is officially representing the project or its community in public spaces.

本行为准则适用于所有项目空间，也适用于个人在公共空间代表项目或其社区时。

## Enforcement / 执法

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the maintainers through the channels listed in [`SECURITY.md`](SECURITY.md). All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

辱骂、骚扰或其他不可接受行为可通过 [`SECURITY.md`](SECURITY.md) 中列出的渠道向维护者报告。所有投诉将被快速、公平地审查与调查。

所有社区领导者都有义务尊重任何事件报告者的隐私与安全。

## Attribution / 引用

This Code of Conduct is adapted from the [Contributor Covenant, version 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).

本行为准则改编自 [Contributor Covenant 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html)。
