From 2ea0f5c1070bf47c8f9dc36093b1e9bca4f48855 Mon Sep 17 00:00:00 2001 From: docubot <67483024+docubot@users.noreply.github.com> Date: Mon, 13 Jun 2022 01:10:51 -0400 Subject: [PATCH] New translation batch for cn (#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 <734194+rsese@users.noreply.github.com> --- .../actions/learn-github-actions/contexts.md | 24 +++++++++---------- .../zh-CN/content/rest/guides/index.md | 2 +- translations/zh-CN/data/features/README.md | 2 +- .../partner-secret-list-private-repo.md | 2 ++ .../partner-secret-list-public-repo.md | 1 + .../secret-list-private-push-protection.md | 15 ++---------- 6 files changed, 19 insertions(+), 27 deletions(-) diff --git a/translations/zh-CN/content/actions/learn-github-actions/contexts.md b/translations/zh-CN/content/actions/learn-github-actions/contexts.md index d0098661c6..0d0354ed69 100644 --- a/translations/zh-CN/content/actions/learn-github-actions/contexts.md +++ b/translations/zh-CN/content/actions/learn-github-actions/contexts.md @@ -45,7 +45,7 @@ miniTocMaxHeadingLevel: 3 | `matrix` | `对象` | 包含在工作流程中定义的应用于当前作业的矩阵属性。 更多信息请参阅 [`matrix` 上下文](#matrix-context)。 | | `needs` | `对象` | 包含定义为当前作业依赖项的所有作业的输出。 更多信息请参阅 [`needs` 上下文](#needs-context)。 | {%- ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4757 %} -| `inputs` | `object` | Contains the inputs of a reusable {% ifversion actions-unified-inputs %}or manually triggered {% endif %}workflow. 更多信息请参阅 [`inputs` 上下文](#inputs-context)。 |{% endif %} +| `inputs` | `object` | 包含可重用 {% ifversion actions-unified-inputs %}或手动触发 {% endif %}工作流程的输入。 更多信息请参阅 [`inputs` 上下文](#inputs-context)。 |{% endif %} 作为表达式的一部分,您可以使用以下两种语法之一访问上下文信息。 @@ -699,20 +699,20 @@ jobs: {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-4757 %} ## `inputs` 上下文 -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..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 %} +`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..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 %} -There are no standard properties in the `inputs` context, only those which are defined in the workflow file. +`inputs` 上下文中没有标准属性,只有工作流程文件中定义的属性。 {% data reusables.actions.reusable-workflows-ghes-beta %} -| 属性名称 | 类型 | 描述 | -| --------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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 %}. 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 | -| `inputs.` | `string` 或 `number` 或 `boolean` | 从外部工作流传递的每个输入值。 | +| 属性名称 | 类型 | 描述 | +| --------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `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 %} 触发的工作流程中可用。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 | +| `inputs.` | `string` 或 `number` 或 `boolean` | 从外部工作流传递的每个输入值。 | ### `inputs` 上下文的示例内容 -The following example contents of the `inputs` context is from a workflow that has defined the `build_id`, `deploy_target`, and `perform_deploy` inputs. +以下 `inputs` 上下文的示例内容来自定义了 `build_id`、`deploy_target` 和 `perform_deploy` 输入的工作流程。 ```yaml { @@ -722,9 +722,9 @@ The following example contents of the `inputs` context is from a workflow that h } ``` -### Example usage of the `inputs` context in a reusable workflow +### 可重用工作流程中 `inputs` 上下文的示例用法 -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. +此示例可重用工作流程使用 `inputs` 上下文来获取从调用方工作流程传递到可重用工作流程的 `build_id`、`deploy_target` 和 `perform_deploy` 输入的值。 {% raw %} ```yaml{:copy} @@ -753,9 +753,9 @@ jobs: {% endraw %} {% ifversion actions-unified-inputs %} -### Example usage of the `inputs` context in a manually triggered workflow +### 手动触发的工作流程中 `inputs` 上下文的示例用法 -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. +此示例工作流程由 `workflow_dispatch` 事件触发,它使用 `inputs` 上下文来获取传递给工作流程的 `build_id`、`deploy_target` 和 `perform_deploy` 输入的值。 {% raw %} ```yaml{:copy} diff --git a/translations/zh-CN/content/rest/guides/index.md b/translations/zh-CN/content/rest/guides/index.md index 435db86619..502b9a1ba1 100644 --- a/translations/zh-CN/content/rest/guides/index.md +++ b/translations/zh-CN/content/rest/guides/index.md @@ -25,4 +25,4 @@ children: - /getting-started-with-the-checks-api --- -文档的这一部分旨在让您使用实际 {% 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) +文档的这一部分旨在让您使用实际 {% 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) diff --git a/translations/zh-CN/data/features/README.md b/translations/zh-CN/data/features/README.md index f8ec528a2d..71856170a4 100644 --- a/translations/zh-CN/data/features/README.md +++ b/translations/zh-CN/data/features/README.md @@ -45,7 +45,7 @@ versions: ## 架构执行 -验证功能版本管理的架构位于 [`tests/helpers/schemas/feature-versions-schema.js`](/tests/helpers/schemas/feature-versions-schema.js) 中,通过 [`tests/linting/lint-files.js`](/tests/linting/lint-files.js) 执行。 +验证功能版本管理的架构位于 [`tests/helpers/schemas/feature-versions-schema.js`](/tests/helpers/schemas/feature-versions-schema.js) 中,通过 [`tests/linting/lint-versioning.js`](/tests/linting/lint-versioning.js) 执行。 ## 删除功能标签的脚本 diff --git a/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md b/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md index c1875346d3..6a7e9225e0 100644 --- a/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md +++ b/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-private-repo.md @@ -147,6 +147,8 @@ Plivo | Plivo Auth ID | plivo_auth_id{% endif %} 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 {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} PyPI | PyPI API Token | pypi_api_token{% endif %} +{%- ifversion fpt or ghec or ghes > 3.5 or ghae-issue-7375 %} +redirect.pizza | redirect.pizza API Token | redirect_pizza_api_token{% endif %} {%- ifversion fpt or ghec or ghes > 3.1 or ghae %} RubyGems | RubyGems API 密钥 | rubygems_api_key{% endif %} Samsara | Samsara API 令牌 | samsara_api_token Samsara | Samsara OAuth 访问令牌 | samsara_oauth_access_token {%- ifversion fpt or ghec or ghes > 3.4 or ghae-issue-6944 %} diff --git a/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-public-repo.md b/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-public-repo.md index 6be65bf5ad..bcce07b24f 100644 --- a/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-public-repo.md +++ b/translations/zh-CN/data/reusables/secret-scanning/partner-secret-list-public-repo.md @@ -77,6 +77,7 @@ | Proctorio | Proctorio 密钥 | | Pulumi | Pulumi 访问令牌 | | PyPI | PyPI API 令牌 | +| redirect.pizza | redirect.pizza API Token | | RubyGems | RubyGems API 密钥 | | Samsara | Samsara API 令牌 | | Samsara | Samsara OAuth 访问令牌 | diff --git a/translations/zh-CN/data/reusables/secret-scanning/secret-list-private-push-protection.md b/translations/zh-CN/data/reusables/secret-scanning/secret-list-private-push-protection.md index 85251ca1cb..4ded6dec06 100644 --- a/translations/zh-CN/data/reusables/secret-scanning/secret-list-private-push-protection.md +++ b/translations/zh-CN/data/reusables/secret-scanning/secret-list-private-push-protection.md @@ -60,16 +60,5 @@ | PlanetScale | PlanetScale 服务令牌 | planetscale_service_token | | Postman | Postman API 密钥 | postman_api_key | | Proctorio | Proctorio 密钥 | proctorio_secret_key | -| Samsara | Samsara API 令牌 | samsara_api_token | -| Samsara | Samsara OAuth 访问令牌 | samsara_oauth_access_token | -| SendGrid | SendGrid API Key | sendgrid_api_key | -| Sendinblue | SendinBlue API 密钥 | sendinblue_api_key | -| Sendinblue | SendinBlue SMTP 密钥 | sendinblue_smtp_key | -| Shippo | Shippo Live API Token | shippo_live_api_token | -| Shopify | Shopify App 共享密钥 | shopify_app_shared_secret | -| Shopify | Shopify 访问令牌 | shopify_access_token | -| Slack | Slack API 令牌 | slack_api_token | -| Stripe | Stripe Live API 密钥 | stripe_api_key | -| Tencent Cloud | 腾讯云密钥 ID | tencent_cloud_secret_id | -| Typeform | Typeform 个人访问令牌 | typeform_personal_access_token | -| WorkOS | WorkOS Production API Key | workos_production_api_key | +{%- ifversion fpt or ghec or ghes > 3.5 or ghae-issue-7375 %} +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