Skip to content

Commit

Permalink
i18n(zh-cn): Update some error pages (#10505)
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv authored Dec 24, 2024
1 parent 6fad06d commit efc9cbb
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
在服务器页面或端点中调用了 action,但没有使用 `Astro.callAction()`

**另请参阅:**
- [`Astro.callAction()` 参考](/zh-cn/reference/api-reference/#astrocallaction)
- [`Astro.callAction()` 参考](/zh-cn/reference/api-reference/#callaction)
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

**请参阅:**
- [官方集成](/zh-cn/guides/integrations-guide/#官方集成)
- [Astro.clientAddress](/zh-cn/reference/api-reference/#astroclientaddress)
- [Astro.clientAddress](/zh-cn/reference/api-reference/#clientaddress)
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export async function getStaticPaths() {
将创建路由:`site.com/blog/1`

**请参阅:**
- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)
- [`params`](/zh-cn/reference/api-reference/#params)
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ export async function getStaticPaths() {

**请参阅:**

- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)
- [`params`](/zh-cn/reference/api-reference/#params)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

**请参阅:**
- [动态路由](/zh-cn/guides/routing/#动态路由)
- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)
- [服务端渲染](/zh-cn/guides/on-demand-rendering/)


Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
import { defineConfig } from 'astro'
export default defineConfig({
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr'],
defaultLocale: 'en',
},
})
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export async function getStaticPaths() {

**请参阅:**

- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)
- [`params`](/zh-cn/reference/api-reference/#params)
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export async function getStaticPaths() {
```

**参见**
- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)


Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export async function getStaticPaths() {
```

**请参阅:**
- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)
- [`params`](/zh-cn/reference/api-reference/#params)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
找到了匹配的[动态路由](/zh-cn/guides/routing/#动态路由),但未找到与请求参数相对应的路径。这通常是由于生成的路径或请求的路径中的拼写错误导致的。

**请参阅:**
- [getStaticPaths()](/zh-cn/reference/api-reference/#getstaticpaths)
- [getStaticPaths()](/zh-cn/reference/routing-reference/#getstaticpaths)
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
在预渲染路由中不能使用 `Astro.clientAddress` 属性。

**另请参阅:**
- [选择加入服务端渲染](/zh-cn/guides/on-demand-rendering/)
- [Astro.clientAddress](/zh-cn/reference/api-reference/#astroclientaddress)
- [按需渲染](/zh-cn/guides/on-demand-rendering/)
- [Astro.clientAddress](/zh-cn/reference/api-reference/#clientaddress)

Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

**另请参阅:**

- [`getStaticPaths()`](/zh-cn/reference/api-reference/#getstaticpaths)
- [`getStaticPaths()`](/zh-cn/reference/routing-reference/#getstaticpaths)
- [`params`](/zh-cn/reference/api-reference/#params)
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

**请参阅:**

- [Astro.redirect](/zh-cn/reference/api-reference/#astroredirect)
- [Astro.redirect](/zh-cn/reference/api-reference/#redirect)
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Astro.rewrite("/target")

**请参阅:**
- [Request.clone()](https://developer.mozilla.org/zh-CN/docs/Web/API/Request/clone)
- [Astro.rewrite](/zh-cn/reference/api-reference/#astrorewrite)
- [Astro.rewrite](/zh-cn/reference/api-reference/#rewrite)
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Astro.clientAddress is not available in static mode.
title: Astro.clientAddress is not available in prerendered pages.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **StaticClientAddressNotAvailable**: `Astro.clientAddress` 仅在设置为 `output: 'server'``output: 'hybrid'` 时可用. 如果需要使用 SSR 的功能,请更新 Astro 配置
> **StaticClientAddressNotAvailable**: `Astro.clientAddress` 仅在服务器端渲染时可用
## 哪里出了问题?

Expand All @@ -15,4 +15,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
**请参阅:**

- [在项目中启用 SSR](/zh-cn/guides/on-demand-rendering/)
- [Astro.clientAddress](/zh-cn/reference/api-reference/#astroclientaddress)
- [Astro.clientAddress](/zh-cn/reference/api-reference/#clientaddress)
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
**请参阅:**

- [在项目中启用 SSR](/zh-cn/guides/on-demand-rendering/)
- [Astro.redirect](/zh-cn/reference/api-reference/#astroredirect)
- [Astro.redirect](/zh-cn/reference/api-reference/#redirect)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

Astro 在加载内容集合时遇到未知错误。

这可能是由 `src/content/config.ts` 文件中的某些错误引起的,或一些内部错误。
这可能是由 `src/content.config.ts` 文件中的某些错误引起的,或一些内部错误。

如果你能够稳定的复现这个错误,请[创建一个 issue](https://astro.build/issues/),我们将不胜感激。

Expand Down

0 comments on commit efc9cbb

Please sign in to comment.