From 7ad1120bd8bda89a87ff90d8e10b97a3d1ed9b27 Mon Sep 17 00:00:00 2001 From: WuMingDao <146366930+WuMingDao@users.noreply.github.com> Date: Fri, 22 Aug 2025 17:10:38 +0800 Subject: [PATCH 1/3] docs(cn): translate errors/index.md into Chinese --- src/content/errors/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/content/errors/index.md b/src/content/errors/index.md index 25746d25d8..99743261db 100644 --- a/src/content/errors/index.md +++ b/src/content/errors/index.md @@ -1,10 +1,9 @@ -In the minified production build of React, we avoid sending down full error messages in order to reduce the number of bytes sent over the wire. +在压缩的生产环境构建的React,我们避免发送完整的错误信息,以减少网络传输的字节数。 +我们强烈建议你在本地调试应用时使用开发环境构建,因为它会追踪额外的调试信息,并针对应用中的潜在问题提供有用的警告。但是,如果你在使用生产环境构建时遇到异常,错误信息将只包含一个指向相关错误文档的链接。 -We highly recommend using the development build locally when debugging your app since it tracks additional debug info and provides helpful warnings about potential problems in your apps, but if you encounter an exception while using the production build, the error message will include just a link to the docs for the error. - -For an example, see: [https://react.dev/errors/149](/errors/421). +例如,参阅:[https://react.dev/errors/149](/errors/421)。 From dda5fdb437dd57ee6caacada9a24de15b8f9b104 Mon Sep 17 00:00:00 2001 From: Xleine Date: Mon, 25 Aug 2025 22:54:08 +0800 Subject: [PATCH 2/3] Update src/content/errors/index.md --- src/content/errors/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/errors/index.md b/src/content/errors/index.md index 99743261db..9e5a6d1cba 100644 --- a/src/content/errors/index.md +++ b/src/content/errors/index.md @@ -1,6 +1,6 @@ -在压缩的生产环境构建的React,我们避免发送完整的错误信息,以减少网络传输的字节数。 +在为生产环境所构建的压缩版 React 中,我们避免发送完整的错误信息,以减少网络传输的字节数。 From 3298f971fd1fbda6a1d44027215f384feaf735e9 Mon Sep 17 00:00:00 2001 From: Xleine Date: Mon, 25 Aug 2025 22:54:42 +0800 Subject: [PATCH 3/3] Update src/content/errors/index.md --- src/content/errors/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/errors/index.md b/src/content/errors/index.md index 9e5a6d1cba..09610a40da 100644 --- a/src/content/errors/index.md +++ b/src/content/errors/index.md @@ -6,4 +6,4 @@ 我们强烈建议你在本地调试应用时使用开发环境构建,因为它会追踪额外的调试信息,并针对应用中的潜在问题提供有用的警告。但是,如果你在使用生产环境构建时遇到异常,错误信息将只包含一个指向相关错误文档的链接。 -例如,参阅:[https://react.dev/errors/149](/errors/421)。 +参阅 [https://react.dev/errors/149](/errors/421) 查看示例。