docs(translation): Update & Improvements on Existing Simplified Chinese Translation of README (#109)

* Update Simplified Chinese Version of README

* Fix a few characters for a more precise translation.

* Fix a character for a more precise translation.
This commit is contained in:
TonyTang 2020-07-19 23:46:04 -07:00 committed by GitHub
parent dd2c7ed278
commit 8fc85c68b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
<p align="center"> <p align="center">
<img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="Github Readme Stats" /> <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="Github Readme Stats" />
<h2 align="center">GitHub Readme Stats</h2> <h2 align="center">GitHub Readme Stats</h2>
<p align="center">在你的 README 中 获取动态生成的GitHub统计信息</p> <p align="center">在你的 README 中 获取动态生成的 GitHub 统计信息!</p>
</p> </p>
<p align="center"> <p align="center">
@ -24,31 +24,32 @@
<a href="https://github.com/anuraghazra/github-readme-stats/issues">请求增加功能</a> <a href="https://github.com/anuraghazra/github-readme-stats/issues">请求增加功能</a>
</p> </p>
</p> </p>
<p align="center">喜欢这个项目? 请考虑<a href="https://www.paypal.me/anuraghazra">捐赠</a>来帮助它完善! <p align="center">喜欢这个项目请考虑<a href="https://www.paypal.me/anuraghazra">捐赠</a>来帮助它完善!
# 特性 # 特性
- [GitHub 统计卡片](#GitHub-统计卡片) - [GitHub 统计卡片](#GitHub-统计卡片)
- [GitHub Extra Pins](#github-extra-pins) - [GitHub 更多置顶](#GitHub-更多置顶)
- [主题](#主题)
- [自定义](#自定义) - [自定义](#自定义)
- [自己部署](#自己部署) - [自己部署](#自己部署)
# GitHub 统计卡片 # GitHub 统计卡片
将这复制到你的 markdown 中,就这样,非常简单! 将这行代码复制到你的 markdown 文件中,简单如此
更改 `?username=` 的值为你的用户名。 更改 `?username=` 的值为你的 GitHub 用户名。
```md ```md
[![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) [![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats)
``` ```
_Note: 排名基于用户的统计信息计算得出,详见 [src/calculateRank.js](./src/calculateRank.js)_ _Note: 排名基于用户的统计信息计算得出,详见 [src/calculateRank.js](./src/calculateRank.js)_
### 隐藏个人统计信息 ### 隐藏个人统计信息
想要隐藏某个统计信息, 你可以传递参数 `?hide=`,并将你想要隐藏的项目用数组进行传递 想要隐藏某项统计信息,你可以调用参数 `?hide=`,并调用 你想要隐藏的项目 组成的数组
> 选项: `&hide=["stars","prs","issues","contribs"]` > 选项`&hide=["stars","prs","issues","contribs"]`
```md ```md
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["contribs","prs"]) ![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["contribs","prs"])
@ -56,36 +57,50 @@ _Note: 排名是基于用户的统计信息计算得出的,详见 [src/calcula
### 显示图标 ### 显示图标
想要显示图标, 你可以传递 `show_icons=true`,像这样: 想要显示图标,你可以调用 `show_icons=true` 参数,如下:
```md ```md
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) ![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true)
``` ```
### 主题
你可以通过现有的主题进行卡片个性化,省去[手动自定义](#自定义)的麻烦。
调用 `?theme=THEME_NAME` 参数,如下:
```md
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical)
```
#### 所有现有主题:
dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula
<img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="Github Readme Stat Themes" width="600px"/>
在 [theme config 文件](./themes/index.js) 中查看更多主题,或者 **贡献新的主题** :D
### 自定义 ### 自定义
你可以为你的 `Stats Card``Repo Card` 自定义样式however you want with URL params. 你可以通过使用 URL 参数的方式,为你的 `Stats Card``Repo Card` 自定义样式
自定义选项: 自定义选项
| Option | type | description | Stats Card (default) | Repo Card (default) | | Option | type | description | Stats Card (default) | Repo Card (default) |
| ----------- | --------- | ------------------------------------ | -------------------- | ------------------- | | ----------- | --------- | ------------------------------------ | -------------------- | ------------------- |
| title_color | hex color | title color | 2f80ed | 2f80ed | | title_color | hex color | 标题颜色 | 2f80ed | 2f80ed |
| text_color | hex color | body color | 333 | 333 | | text_color | hex color | 字体颜色 | 333 | 333 |
| icon_color | hex color | icon color | 4c71f2 | 586069 | | icon_color | hex color | 图标颜色 | 4c71f2 | 586069 |
| bg_color | hex color | card bg color | FFFEFE | FFFEFE | | bg_color | hex color | 卡片背景颜色 | FFFEFE | FFFEFE |
| line_height | number | control the line-height between text | 30 | N/A | | line_height | number | 文字行高 | 30 | N/A |
| hide_rank | boolean | hides the ranking | false | N/A | | hide_rank | boolean | 隐藏评分等级 | false | N/A |
| hide_title | boolean | hides the stats title | false | N/A | | hide_title | boolean | 隐藏卡片标题 | false | N/A |
| hide_border | boolean | hides the stats card border | false | N/A | | hide_border | boolean | 隐藏卡片边框 | false | N/A |
| show_owner | boolean | shows owner name in repo card | N/A | false | | show_owner | boolean | 显示 Repo 卡片所属账户用户名 | N/A | false |
| show_icons | boolean | shows icons | false | N/A | | show_icons | boolean | 显示图标 | false | N/A |
| theme | string | 设置主题 | 'default' | 'default_repocard' |
- 你也可以通过自定义来兼容暗黑模式 ---
```md
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515)
```
### Demo ### Demo
@ -93,7 +108,7 @@ _Note: 排名是基于用户的统计信息计算得出的,详见 [src/calcula
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) ![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)
- 隐藏某个项目 - 隐藏特定数据
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["contribs","issues"]) ![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["contribs","issues"])
@ -101,23 +116,31 @@ _Note: 排名是基于用户的统计信息计算得出的,详见 [src/calcula
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["issues"]&show_icons=true) ![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["issues"]&show_icons=true)
- 主题
从 [默认主题](#主题) 中进行选择
![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical)
- 自定义添加卡片 - 自定义添加卡片
![Anurag's github stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) ![Anurag's github stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515)
- 自定义仓库卡片 - 自定义 Repo 卡片
![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515)
# GitHub Extra Pins ---
GitHub extra pins allow you to pin more than 6 repositories in your profile using a GitHub readme profile. # GitHub 更多置顶
Yey! You are no longer limited to 6 pinned repositories. GitHub 更多置顶 让你使用 README Profile在个人页面中置顶多于 6 个 repo 。
### Usage 这波可以!你再也不用受限于最多 6 个置顶了。
Copy-paste this code into your readme and change the links. ### 使用细则
复制粘贴这段代码到你的 README 文件中,并更改链接。
Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats` Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats`
@ -129,13 +152,13 @@ Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats`
[![ReadMe Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) [![ReadMe Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats)
Use [show_owner](#自定义) variable to include the repo's owner username 使用 [show_owner](#自定义) 变量将 Repo 所属账户的用户名包含在内。
[![ReadMe Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) [![ReadMe Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats)
### 提示 (Align The Repo Cards) ### 提示 (对齐 Repo 卡片)
你通常无法将图片靠边显示为此,您可以使用以下方法: 你通常无法将图片靠边显示为此,您可以使用以下方法:
```md ```md
<a href="https://github.com/anuraghazra/github-readme-stats"> <a href="https://github.com/anuraghazra/github-readme-stats">
@ -148,22 +171,22 @@ Use [show_owner](#自定义) variable to include the repo's owner username
## 自己部署 ## 自己部署
自从 GitHub 的 API 每个小时只允许 5 千的请求,我都 `https://github-readme-stats.vercel.app/api` 很有可能会触发限制 因为 GitHub 的 API 每个小时只允许 5 千次请求,我的 `https://github-readme-stats.vercel.app/api` 很有可能会触发限制
如果你将其托管在自己的 Vercel 服务商,那么你就不用担心任何事了。点击 deploy 按钮来开始 如果你将其托管在自己的 Vercel 服务器上,那么你就不必为此担心。点击 deploy 按钮来开始你的部署!
注意: 从 [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) 开始,我们应该能够处理超过 5千 的请求,并且不会出现宕机问题 :D 注意: 从 [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) 开始,我们应该能够处理超过 5千 的请求,并且不会出现宕机问题 :D
[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats)
<details> <details>
<summary>Guide on setting up Vercel</summary> <summary>设置 Vercel 的指导</summary>
1. 前往 [vercel.com](https://vercel.com/) 1. 前往 [vercel.com](https://vercel.com/)
1. 点击 `Log in` 1. 点击 `Log in`
![](https://files.catbox.moe/tct1wg.png) ![](https://files.catbox.moe/tct1wg.png)
1. 点击 `Continue with GitHub` 通过 GitHub 进行登录 1. 点击 `Continue with GitHub` 通过 GitHub 进行登录
![](https://files.catbox.moe/btd78j.jpeg) ![](https://files.catbox.moe/btd78j.jpeg)
1. 登录 GitHub 并允许访问所有存储库(如果系统提示) 1. 登录 GitHub 并允许访问所有存储库(如果系统这样提示)
1. Fork 这个仓库 1. Fork 这个仓库
1. 返回到你的 [Vercel dashboard](https://vercel.com/dashboard) 1. 返回到你的 [Vercel dashboard](https://vercel.com/dashboard)
1. 选择 `Import Project` 1. 选择 `Import Project`
@ -172,18 +195,18 @@ Use [show_owner](#自定义) variable to include the repo's owner username
![](https://files.catbox.moe/pqub9q.png) ![](https://files.catbox.moe/pqub9q.png)
1. 选择 root 并将所有内容保持不变,并且只需添加名为 PAT_1 的环境变量如图所示其中将包含一个个人访问令牌PAT你可以在[这里](https://github.com/settings/tokens/new)轻松创建(保留默认,并且只需要命名下,名字随便) 1. 选择 root 并将所有内容保持不变,并且只需添加名为 PAT_1 的环境变量如图所示其中将包含一个个人访问令牌PAT你可以在[这里](https://github.com/settings/tokens/new)轻松创建(保留默认,并且只需要命名下,名字随便)
![](https://files.catbox.moe/caem5b.png) ![](https://files.catbox.moe/caem5b.png)
1. 点击 deploy, 这就完成了,查看你的域名就可使用 API 了! 1. 点击 deploy这就完成了,查看你的域名就可使用 API 了!
</details> </details>
## :sparkling_heart: 支持这个项目 ## :sparkling_heart: 支持这个项目
几乎将我所能的进行开源,并且我试着回复每个在使用这些项目时需要帮助的人。很明显,这需要时间,但你可以免费享受此服务 尽己所能地进行开源,并且我尽量回复每个在使用项目时需要帮助的人。很明显,这需要时间,但你可以免费享受这些
然而, 如果你正在使用这个项目并且感觉挺开心或者只是想要支持我继续开发,这里有一些方法 然而, 如果你正在使用这个项目并感觉良好,或只是想要支持我继续开发,你可以通过如下方式
- 在你的 README 中使用 github-readme-stats 时,链接指向会这里 :D - 在你的 README 中使用 github-readme-stats 时,链接指向会这里 :D
- Star 并 分享这个项目 :rocket: - Star 并 分享这个项目 :rocket:
- [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - 你可以通过 PayPal 一次性捐款. 我可能会买一杯~~咖啡~~茶. :tea: - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - 你可以通过 PayPal 一次性捐款. 我多半会买一杯 ~~咖啡~~ 茶。:tea:
谢谢! :heart: 谢谢! :heart: