Skip to content

Commit 2ea0f5c

Browse files
docubotrsese
andauthored
New translation batch for cn (github#28432)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-files-with-broken-liquid-tags.js --language=cn * run script/i18n/reset-known-broken-translation-files.js Co-authored-by: Robert Sese <[email protected]>
1 parent 4ded5c1 commit 2ea0f5c

File tree

6 files changed

+19
-27
lines changed

6 files changed

+19
-27
lines changed

translations/zh-CN/content/actions/learn-github-actions/contexts.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ miniTocMaxHeadingLevel: 3
4545
| `matrix` | `对象` | 包含在工作流程中定义的应用于当前作业的矩阵属性。 更多信息请参阅 [`matrix` 上下文](#matrix-context)|
4646
| `needs` | `对象` | 包含定义为当前作业依赖项的所有作业的输出。 更多信息请参阅 [`needs` 上下文](#needs-context)|
4747
{%- ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4757 %}
48-
| `inputs` | `object` | Contains the inputs of a reusable {% ifversion actions-unified-inputs %}or manually triggered {% endif %}workflow. 更多信息请参阅 [`inputs` 上下文](#inputs-context)。 |{% endif %}
48+
| `inputs` | `object` | 包含可重用 {% ifversion actions-unified-inputs %}或手动触发 {% endif %}工作流程的输入。 更多信息请参阅 [`inputs` 上下文](#inputs-context)。 |{% endif %}
4949

5050
作为表达式的一部分,您可以使用以下两种语法之一访问上下文信息。
5151

@@ -699,20 +699,20 @@ jobs:
699699
{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4757 %}
700700
## `inputs` 上下文
701701

702-
The `inputs` context contains input properties passed to a reusable workflow{% ifversion actions-unified-inputs %} or to a manually triggered workflow{% endif %}. {% ifversion actions-unified-inputs %}For reusable workflows, the{% else %}The{% endif %} input names and types are defined in the [`workflow_call` event configuration](/actions/learn-github-actions/events-that-trigger-workflows#workflow-reuse-events) of a reusable workflow, and the input values are passed from [`jobs.<job_id>.with`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idwith) in an external workflow that calls the reusable workflow. {% ifversion actions-unified-inputs %}For manually triggered workflows, the inputs are defined in the [`workflow_dispatch` event configuration](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch) of a workflow.{% endif %}
702+
`inputs` 上下文包含传递给可重用工作流程{% ifversion actions-unified-inputs %} 或手动触发的工作流{% endif %} 的输入属性。 {% ifversion actions-unified-inputs %}对于可重用的工作流程,{% else %}{% endif %}输入名称和类型在可重用工作流程的 [`workflow_call` 事件配置](/actions/learn-github-actions/events-that-trigger-workflows#workflow-reuse-events)中定义,输入值从调用可重用工作流程的外部工作流中的 [`jobs.<job_id>.with`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idwith) 传递。 {% ifversion actions-unified-inputs %}对于手动触发的工作流,输入在工作流程的 [`workflow_dispatch` 事件配置](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch)中定义。{% endif %}
703703

704-
There are no standard properties in the `inputs` context, only those which are defined in the workflow file.
704+
`inputs` 上下文中没有标准属性,只有工作流程文件中定义的属性。
705705

706706
{% data reusables.actions.reusable-workflows-ghes-beta %}
707707

708-
| 属性名称 | 类型 | 描述 |
709-
| --------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
710-
| `inputs` | `对象` | This context is only available in a [reusable workflow](/actions/learn-github-actions/reusing-workflows){% ifversion actions-unified-inputs %} or in a workflow triggered by the [`workflow_dispatch` event](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch){% endif %}. 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 |
711-
| `inputs.<name>` | `string``number``boolean` | 从外部工作流传递的每个输入值。 |
708+
| 属性名称 | 类型 | 描述 |
709+
| --------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
710+
| `inputs` | `对象` | 此上下文仅在 [reusable workflow](/actions/learn-github-actions/reusing-workflows){% ifversion actions-unified-inputs %} 或由 [`workflow_dispatch` 事件](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch){% endif %} 触发的工作流程中可用。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 |
711+
| `inputs.<name>` | `string``number``boolean` | 从外部工作流传递的每个输入值。 |
712712

713713
### `inputs` 上下文的示例内容
714714

715-
The following example contents of the `inputs` context is from a workflow that has defined the `build_id`, `deploy_target`, and `perform_deploy` inputs.
715+
以下 `inputs` 上下文的示例内容来自定义了 `build_id``deploy_target` `perform_deploy` 输入的工作流程。
716716

717717
```yaml
718718
{
@@ -722,9 +722,9 @@ The following example contents of the `inputs` context is from a workflow that h
722722
}
723723
```
724724

725-
### Example usage of the `inputs` context in a reusable workflow
725+
### 可重用工作流程中 `inputs` 上下文的示例用法
726726

727-
This example reusable workflow uses the `inputs` context to get the values of the `build_id`, `deploy_target`, and `perform_deploy` inputs that were passed to the reusable workflow from the caller workflow.
727+
此示例可重用工作流程使用 `inputs` 上下文来获取从调用方工作流程传递到可重用工作流程的 `build_id``deploy_target` `perform_deploy` 输入的值。
728728

729729
{% raw %}
730730
```yaml{:copy}
@@ -753,9 +753,9 @@ jobs:
753753
{% endraw %}
754754

755755
{% ifversion actions-unified-inputs %}
756-
### Example usage of the `inputs` context in a manually triggered workflow
756+
### 手动触发的工作流程中 `inputs` 上下文的示例用法
757757

758-
This example workflow triggered by a `workflow_dispatch` event uses the `inputs` context to get the values of the `build_id`, `deploy_target`, and `perform_deploy` inputs that were passed to the workflow.
758+
此示例工作流程由 `workflow_dispatch` 事件触发,它使用 `inputs` 上下文来获取传递给工作流程的 `build_id``deploy_target` `perform_deploy` 输入的值。
759759

760760
{% raw %}
761761
```yaml{:copy}

translations/zh-CN/content/rest/guides/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ children:
2525
- /getting-started-with-the-checks-api
2626
---
2727

28-
文档的这一部分旨在让您使用实际 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API 应用程序开始运行。 We'll go over everything you need to know, from authentication to results manipulation to integrating results with other apps. Every tutorial will include a project, and each project will be saved and documented in our public [platform-samples](https://github.com/github/platform-samples) repository. ![The Octocat](/assets/images/electrocat.png)
28+
文档的这一部分旨在让您使用实际 {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.product.product_name %}{% endif %} API 应用程序开始运行。 我们将介绍您需要了解的所有内容,从身份验证到结果操作,再到将结果与其他应用程序集成。 每个教程都将包含一个项目,每个项目都将保存并记录在我们的公共 [platform-samples](https://github.com/github/platform-samples) 存储库中。 ![The Octocat](/assets/images/electrocat.png)

translations/zh-CN/data/features/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ versions:
4545

4646
## 架构执行
4747

48-
验证功能版本管理的架构位于 [`tests/helpers/schemas/feature-versions-schema.js`](/tests/helpers/schemas/feature-versions-schema.js) 中,通过 [`tests/linting/lint-files.js`](/tests/linting/lint-files.js) 执行。
48+
验证功能版本管理的架构位于 [`tests/helpers/schemas/feature-versions-schema.js`](/tests/helpers/schemas/feature-versions-schema.js) 中,通过 [`tests/linting/lint-versioning.js`](/tests/linting/lint-versioning.js) 执行。
4949

5050
## 删除功能标签的脚本
5151

translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Plivo | Plivo Auth ID | plivo_auth_id{% endif %}
147147
Plivo | Plivo 验证令牌 | plivo_auth_token{% endif %} Postman | Postman API 密钥 | postman_api_key Proctorio | Proctorio 消费者密钥 | proctorio_consumer_key Proctorio | Proctorio 链接密钥 | proctorio_linkage_key Proctorio | Proctorio 注册密钥 | proctorio_registration_key Proctorio | Proctorio 密钥 | proctorio_secret_key Pulumi | Pulumi 访问令牌 | pulumi_access_token
148148
{%- ifversion fpt or ghec or ghes > 3.1 or ghae %}
149149
PyPI | PyPI API Token | pypi_api_token{% endif %}
150+
{%- ifversion fpt or ghec or ghes > 3.5 or ghae-issue-7375 %}
151+
redirect.pizza | redirect.pizza API Token | redirect_pizza_api_token{% endif %}
150152
{%- ifversion fpt or ghec or ghes > 3.1 or ghae %}
151153
RubyGems | RubyGems API 密钥 | rubygems_api_key{% endif %} Samsara | Samsara API 令牌 | samsara_api_token Samsara | Samsara OAuth 访问令牌 | samsara_oauth_access_token
152154
{%- ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6944 %}

translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-public-repo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
| Proctorio | Proctorio 密钥 |
7878
| Pulumi | Pulumi 访问令牌 |
7979
| PyPI | PyPI API 令牌 |
80+
| redirect.pizza | redirect.pizza API Token |
8081
| RubyGems | RubyGems API 密钥 |
8182
| Samsara | Samsara API 令牌 |
8283
| Samsara | Samsara OAuth 访问令牌 |

translations/zh-CN/data/reusables/secret-scanning/secret-list-private-push-protection.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,5 @@
6060
| PlanetScale | PlanetScale 服务令牌 | planetscale_service_token |
6161
| Postman | Postman API 密钥 | postman_api_key |
6262
| Proctorio | Proctorio 密钥 | proctorio_secret_key |
63-
| Samsara | Samsara API 令牌 | samsara_api_token |
64-
| Samsara | Samsara OAuth 访问令牌 | samsara_oauth_access_token |
65-
| SendGrid | SendGrid API Key | sendgrid_api_key |
66-
| Sendinblue | SendinBlue API 密钥 | sendinblue_api_key |
67-
| Sendinblue | SendinBlue SMTP 密钥 | sendinblue_smtp_key |
68-
| Shippo | Shippo Live API Token | shippo_live_api_token |
69-
| Shopify | Shopify App 共享密钥 | shopify_app_shared_secret |
70-
| Shopify | Shopify 访问令牌 | shopify_access_token |
71-
| Slack | Slack API 令牌 | slack_api_token |
72-
| Stripe | Stripe Live API 密钥 | stripe_api_key |
73-
| Tencent Cloud | 腾讯云密钥 ID | tencent_cloud_secret_id |
74-
| Typeform | Typeform 个人访问令牌 | typeform_personal_access_token |
75-
| WorkOS | WorkOS Production API Key | workos_production_api_key |
63+
{%- ifversion fpt or ghec or ghes > 3.5 or ghae-issue-7375 %}
64+
redirect.pizza | redirect.pizza API Token | redirect_pizza_api_token{% endif %} Samsara | Samsara API Token | samsara_api_token Samsara | Samsara OAuth Access Token | samsara_oauth_access_token SendGrid | SendGrid API Key | sendgrid_api_key Sendinblue | Sendinblue API Key | sendinblue_api_key Sendinblue | Sendinblue SMTP Key | sendinblue_smtp_key Shippo | Shippo Live API Token | shippo_live_api_token Shopify | Shopify App Shared Secret | shopify_app_shared_secret Shopify | Shopify Access Token | shopify_access_token Slack | Slack API Token | slack_api_token Stripe | Stripe Live API Secret Key | stripe_api_key Tencent Cloud | Tencent Cloud Secret ID | tencent_cloud_secret_id Typeform | Typeform Personal Access Token | typeform_personal_access_token WorkOS | WorkOS Production API Key | workos_production_api_key

0 commit comments

Comments
 (0)