Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cn): translate the home page #1087

Merged
merged 10 commits into from
Mar 21, 2023
Merged

docs(cn): translate the home page #1087

merged 10 commits into from
Mar 21, 2023

Conversation

daochouwangu
Copy link
Collaborator

translate the home page
翻译首页

@github-actions
Copy link

github-actions bot commented Mar 20, 2023

Size Changes%0A
%0A%0A## 📦 Next.js Bundle Analysis%0A%0AThis analysis was generated by the next.js bundle analysis action 🤖%0A%0A### Three Pages Changed Size%0A %0AThe following pages changed size from the code in this PR compared to its base branch:%0A%0APage | Size (compressed) | First Load |%0A|---|---|---|%0A| /404 | 76.33 KB (🟡 +783 B) | 169.3 KB |%0A| /500 | 76.33 KB (🟡 +783 B) | 169.29 KB |%0A| /[[...markdownPath]] | 77.89 KB (🟡 +783 B) | 170.85 KB |%0A%0A
%0ADetails%0A

Only the gzipped size is provided here based on an expert tip.

%0A

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

%0A

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

%0A

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10%25 or more, there will be a red status indicator applied, indicating that special attention should be given to this.%0A

%0A%0A%0A

Copy link
Collaborator Author

@daochouwangu daochouwangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

编辑器自动换行,不知道是不是我配置的问题,网页显示是正常的。

@@ -131,7 +131,7 @@ export function HomeContent() {
React
</h1>
<p className="text-4xl font-display max-w-lg md:max-w-full py-1 text-center text-secondary dark:text-primary-dark leading-snug self-center">
The library for web and native user interfaces
一个构建 Web 和原生用户界面的库
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉这样会好一点

Co-authored-by: QiChang Li <github@liqichang.com>
provided by the platform.
让你可以使用 React 构建 Android、iOS
等应用程序。它们的样式和体验都和原生应用程序一样,因为它们的用户界面是真正的原生用户界面。这不是一个
Web 视图——你的 React 组件由平台提供的真实 Android 或
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方应该是破折号「——」而不是两个短横线吧?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里好像就是破折号,手机上看可能有问题

src/components/Layout/HomeContent.js Outdated Show resolved Hide resolved
Co-authored-by: Yucohny <79147654+Yucohny@users.noreply.github.com>
@awxiaoxian2020 awxiaoxian2020 merged commit a5136e5 into main Mar 21, 2023
@awxiaoxian2020 awxiaoxian2020 deleted the translate-home-content branch March 21, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants