Skip to content

Commit 44dd131

Browse files
isyuahyanthomasdev
andauthored
i18n(zh-cn): Add new guides/integrations.mdx translation (#13841)
@lunaria-track:src/content/docs/zh-cn/guides/integrations.mdx Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
1 parent d3b969f commit 44dd131

9 files changed

Lines changed: 616 additions & 10 deletions

File tree

src/content/docs/zh-cn/guides/integrations.mdx

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

src/content/docs/zh-cn/guides/on-demand-rendering.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Astro 为 [Node.js](https://nodejs.org/)、[Netlify](https://www.netlify.com/)
2929

3030
### 添加适配器
3131

32-
使用以下 `astro add` 命令可添加任何由 Astro 维护的[官方适配器集成](/zh-cn/guides/integrations/#official-integrations)。该命令将自动安装适配器并修改 `astro.config.mjs` 文件。
32+
使用以下 `astro add` 命令可添加任何由 Astro 维护的[官方适配器集成](/zh-cn/guides/integrations/#官方集成)。该命令将自动安装适配器并修改 `astro.config.mjs` 文件。
3333

3434
例如,安装 Netlify 适配器可运行:
3535

@@ -51,7 +51,7 @@ Astro 为 [Node.js](https://nodejs.org/)、[Netlify](https://www.netlify.com/)
5151
</Fragment>
5252
</PackageManagerTabs>
5353

54-
你也可以[手动安装 NPM 包](/zh-cn/guides/integrations/#installing-an-npm-package)(如 `@astrojs/netlify`)并自行修改 `astro.config.mjs`
54+
你也可以[手动安装 NPM 包](/zh-cn/guides/integrations/#安装-npm-)(如 `@astrojs/netlify`)并自行修改 `astro.config.mjs`
5555

5656
注意不同适配器可能有不同的配置选项。请阅读各适配器文档,并在 `astro.config.mjs` 中为所选适配器应用必要的配置。
5757

src/content/docs/zh-cn/guides/upgrade-to/v3.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ Astro v3.0 将 `astro check` 命令从 Astro 核心中移出,并且现在需
327327

328328
在 Astro v2.x 中,`build.excludeMiddleware``build.split` 用于在 SSR 模式下使用适配器时更改特定文件的产出方式。
329329

330-
Astro v3.0 用新的 [SSR 适配器配置选项](/zh-cn/guides/integrations/#official-integrations) 替换了这些构建配置选项,以执行相同的任务:`edgeMiddleware``functionPerRoute`
330+
Astro v3.0 用新的 [SSR 适配器配置选项](/zh-cn/guides/integrations/#官方集成) 替换了这些构建配置选项,以执行相同的任务:`edgeMiddleware``functionPerRoute`
331331

332332
#### 我应该怎么做?
333333

@@ -788,7 +788,7 @@ import rocket from '../images/rocket.svg';
788788
<Steps>
789789
1. 移除 `@astrojs/image` 集成。
790790

791-
你必须通过卸载并从你的 `astro.config.mjs` 文件中删除它,来 [移除集成](/zh-cn/guides/integrations/#removing-an-integration)
791+
你必须通过卸载并从你的 `astro.config.mjs` 文件中删除它,来 [移除集成](/zh-cn/guides/integrations/#移除集成)
792792

793793
```js del={3,7}
794794
// astro.config.mjs

src/content/docs/zh-cn/guides/upgrade-to/v4.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
3939
</PackageManagerTabs>
4040

4141

42-
如果需要的话,你也可以[手动升级 Astro 集成](/zh-cn/guides/integrations/#manual-upgrading),你可能还需要升级项目中的其他依赖。
42+
如果需要的话,你也可以[手动升级 Astro 集成](/zh-cn/guides/integrations/#手动升级),你可能还需要升级项目中的其他依赖。
4343

4444

4545
:::note[需要继续吗?]

src/content/docs/zh-cn/guides/upgrade-to/v5.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import SourcePR from '~/components/SourcePR.astro'
4141
</Fragment>
4242
</PackageManagerTabs>
4343

44-
如果需要的话,你也可以 [手动升级 Astro 集成](/zh-cn/guides/integrations/#manual-upgrading),你可能还需要升级项目中的其他依赖。
44+
如果需要的话,你也可以 [手动升级 Astro 集成](/zh-cn/guides/integrations/#手动升级),你可能还需要升级项目中的其他依赖。
4545

4646
:::note[需要继续吗?]
4747
升级 Astro 到最新版本后,你可能不需要对你的项目做任何更改!

src/content/docs/zh-cn/reference/cli-reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Flags
273273

274274
## `astro add`
275275

276-
将集成添加到你的配置中。在[集成指南](/zh-cn/guides/integrations/#automatic-integration-setup)中阅读更多信息。
276+
将集成添加到你的配置中。在[集成指南](/zh-cn/guides/integrations/#自动配置集成)中阅读更多信息。
277277

278278
## `astro docs`
279279

src/content/docs/zh-cn/reference/content-loader-reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ if (cacheHint?.lastModified) {
667667

668668
## 分发你的加载器
669669

670-
加载器可以在你的网站中定义,也可以作为单独的 npm 包。如果你想与社区分享你的加载器,可以 [使用 withastro 和 astro-loader 关键词将其发布到 npm](/zh-cn/guides/integrations/#packagejson-data)
670+
加载器可以在你的网站中定义,也可以作为单独的 npm 包。如果你想与社区分享你的加载器,可以 [使用 withastro 和 astro-loader 关键词将其发布到 npm](/zh-cn/guides/integrations/#packagejson-数据)
671671

672672
加载器应导出一个函数,该函数为实时加载器返回 `LiveLoader` 对象,或为构建时加载器返回 `Loader` 对象,从而允许用户使用他们自己的设置进行配置。
673673

src/content/docs/zh-cn/reference/errors/client-address-not-available.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
1010
很遗憾,你所使用的适配器不支持 `Astro.clientAddress`
1111

1212
**请参阅:**
13-
- [官方集成](/zh-cn/guides/integrations/#official-integrations)
13+
- [官方集成](/zh-cn/guides/integrations/#官方集成)
1414
- [Astro.clientAddress](/zh-cn/reference/api-reference/#clientaddress)

src/content/docs/zh-cn/reference/errors/no-matching-renderer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
1313

1414
**请参阅:**
1515
- [框架组件](/zh-cn/guides/framework-components/)
16-
- [UI 框架](/zh-cn/guides/integrations/#official-integrations)
16+
- [UI 框架](/zh-cn/guides/integrations/#官方集成)

0 commit comments

Comments
 (0)