Skip to content

Commit a4f01e2

Browse files
authored
New translation batch for cn (#23386)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check parsing * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-known-broken-translation-files.js * Check in cn CSV report
1 parent 26c7dc9 commit a4f01e2

10 files changed

Lines changed: 455 additions & 383 deletions

File tree

translations/log/cn-resets.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troub
3636
translations/zh-CN/content/actions/hosting-your-own-runners/removing-self-hosted-runners.md,rendering error
3737
translations/zh-CN/content/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners.md,rendering error
3838
translations/zh-CN/content/actions/learn-github-actions/contexts.md,rendering error
39+
translations/zh-CN/content/actions/learn-github-actions/creating-workflow-templates.md,rendering error
3940
translations/zh-CN/content/actions/learn-github-actions/environment-variables.md,rendering error
4041
translations/zh-CN/content/actions/learn-github-actions/expressions.md,rendering error
4142
translations/zh-CN/content/actions/learn-github-actions/reusing-workflows.md,rendering error
@@ -46,6 +47,7 @@ translations/zh-CN/content/actions/learn-github-actions/workflow-syntax-for-gith
4647
translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md,rendering error
4748
translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md,Listed in localization-support#489
4849
translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md,rendering error
50+
translations/zh-CN/content/actions/publishing-packages/publishing-nodejs-packages.md,rendering error
4951
translations/zh-CN/content/actions/using-github-hosted-runners/about-ae-hosted-runners.md,rendering error
5052
translations/zh-CN/content/actions/using-github-hosted-runners/about-github-hosted-runners.md,rendering error
5153
translations/zh-CN/content/admin/advanced-security/configuring-code-scanning-for-your-appliance.md,rendering error
@@ -132,9 +134,11 @@ translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/a
132134
translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications.md,rendering error
133135
translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository.md,rendering error
134136
translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys.md,rendering error
137+
translations/zh-CN/content/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log.md,rendering error
135138
translations/zh-CN/content/authentication/managing-commit-signature-verification/about-commit-signature-verification.md,rendering error
136139
translations/zh-CN/content/authentication/managing-commit-signature-verification/signing-commits.md,rendering error
137140
translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device.md,rendering error
141+
translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials.md,rendering error
138142
translations/zh-CN/content/billing/index.md,rendering error
139143
translations/zh-CN/content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md,rendering error
140144
translations/zh-CN/content/billing/managing-billing-for-your-github-account/discounted-subscriptions-for-github-accounts.md,rendering error

translations/zh-CN/content/actions/learn-github-actions/creating-workflow-templates.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ topics:
1919
{% data reusables.actions.enterprise-github-hosted-runners %}
2020
{% data reusables.actions.ae-beta %}
2121

22-
## 概览
22+
## Overview
2323

2424
{% data reusables.actions.workflow-organization-templates %}
2525

26-
## 创建工作流程模板
26+
## Creating a workflow template
2727

28-
对组织的 `.github` 仓库具有写入权限的用户可以创建工作流程模板。 然后,有权限创建工作流程的组织成员便可使用这些模板。
28+
Workflow templates can be created by users with write access to the organization's `.github` repository. The templates can then be used by organization members who have permission to create workflows.
2929

3030
{% ifversion fpt %}
3131
Your workflow templates can be used to create workflows in public repositories only. Organizations using {% data variables.product.prodname_ghe_cloud %} can also use workflow templates to create workflows in private repositories. For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/actions/learn-github-actions/creating-workflow-templates).
@@ -39,15 +39,15 @@ Your workflow templates can be used to create workflows in public repositories o
3939
{% endnote %}
4040
{% endif %}
4141

42-
此过程展示如何创建工作流程模板和元数据文件。 元数据文件描述在用户新建工作流程时如何向其显示模板。
42+
This procedure demonstrates how to create a workflow template and metadata file. The metadata file describes how the template is presented to users when they are creating a new workflow.
4343

44-
1. 如果组织中没有名为 `.github` 的公共仓库,请新建一个。
45-
2. 创建一个名为 `workflow-templates` 的目录。
46-
3. `workflow-templates` 目录中创建新的工作流程文件。
44+
1. If it doesn't already exist, create a new public repository named `.github` in your organization.
45+
2. Create a directory named `workflow-templates`.
46+
3. Create your new workflow file inside the `workflow-templates` directory.
4747

48-
如果需要引用仓库的默认分支,可以使用 `$default-branch` 占位符。 使用模板创建工作流程时,占位符将自动替换为仓库默认分支的名称。
48+
If you need to refer to a repository's default branch, you can use the `$default-branch` placeholder. When a workflow is created using your template, the placeholder will be automatically replaced with the name of the repository's default branch.
4949

50-
例如,下面这个名为 `octo-organization-ci.yml` 的文件展示了一个基本的工作流程。
50+
For example, this file named `octo-organization-ci.yml` demonstrates a basic workflow.
5151

5252
```yaml
5353
name: Octo Organization CI
@@ -68,7 +68,7 @@ Your workflow templates can be used to create workflows in public repositories o
6868
- name: Run a one-line script
6969
run: echo Hello from Octo Organization
7070
```
71-
4. `workflow-templates` 目录中创建元数据文件。 元数据文件必须与工作流程文件同名,但扩展名不是 `.yml`,而必须附加 `.properties.json`。 例如,下面这个名为 `octo-organization-ci.properties.json` 的文件包含名为 `octo-organization-ci.yml` 的工作流程文件的元数据:
71+
4. Create a metadata file inside the `workflow-templates` directory. The metadata file must have the same name as the workflow file, but instead of the `.yml` extension, it must be appended with `.properties.json`. For example, this file named `octo-organization-ci.properties.json` contains the metadata for a workflow file named `octo-organization-ci.yml`:
7272
```yaml
7373
{
7474
"name": "Octo Organization Workflow",
@@ -84,16 +84,16 @@ Your workflow templates can be used to create workflows in public repositories o
8484
]
8585
}
8686
```
87-
* `name` - **必要。**工作流程模板的名称。 这会显示在可用模板列表中。
88-
* `description` - **必要。**工作流程模板的描述。 这会显示在可用模板列表中。
89-
* `iconName` - **必要。**定义模板列表中工作流程项目的图标。 `iconName` 必须是同名的 SVG 图标,且必须存储在 `workflow-templates` 目录中。 例如,名为 `example-icon.svg` 的 SVG 文件被引用为 `example-icon`
90-
* `categories` - **可选。**定义工作流程的语言类别。 当用户查看可用模板时,匹配相同语言的模板将更加突出。 有关可用语言类别的信息,请参阅https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
91-
* `filePatterns` - **可选。**如果用户仓库在其根目录中有符合定义的正则表达式的文件,则允许使用模板。
87+
* `name` - **Required.** The name of the workflow template. This is displayed in the list of available templates.
88+
* `description` - **Required.** The description of the workflow template. This is displayed in the list of available templates.
89+
* `iconName` - **Optional.** Defines an icon for the workflow's entry in the template list. The `iconName` must be an SVG icon of the same name, and must be stored in the `workflow-templates` directory. For example, a SVG file named `example-icon.svg` is referenced as `example-icon`.
90+
* `categories` - **Optional.** Defines the language category of the workflow. When a user views the available templates, those templates that match the same language will feature more prominently. For information on the available language categories, see https://github.com/github/linguist/blob/master/lib/linguist/languages.yml.
91+
* `filePatterns` - **Optional.** Allows the template to be used if the user's repository has a file in its root directory that matches a defined regular expression.
9292

93-
要添加另一个工作流模板,请将您的文件添加到同一 `workflow-templates` 目录中。 例如:
93+
To add another workflow template, add your files to the same `workflow-templates` directory. For example:
9494

95-
![工作流程模板文件](/assets/images/help/images/workflow-template-files.png)
95+
![Workflow template files](/assets/images/help/images/workflow-template-files.png)
9696

97-
## 后续步骤
97+
## Next steps
9898

9999
To continue learning about {% data variables.product.prodname_actions %}, see "[Using workflow templates](/actions/learn-github-actions/using-workflow-templates)."

0 commit comments

Comments
 (0)