From bbc2e86286812f72b59bc976cc047b0ea4c9b009 Mon Sep 17 00:00:00 2001
From: misitebao
Date: Mon, 4 Oct 2021 12:27:03 +0800
Subject: [PATCH 1/5] docs: update chinese readme
---
README.zh-Hans.md | 109 +++++++++++++++++++++++++++-------------------
1 file changed, 64 insertions(+), 45 deletions(-)
diff --git a/README.zh-Hans.md b/README.zh-Hans.md
index fc310183e..900b1e7ac 100644
--- a/README.zh-Hans.md
+++ b/README.zh-Hans.md
@@ -18,44 +18,63 @@
## 国际化
-[English](README.md) | 简体中文
-
-向 Go 程序提供 Web 接口的传统方法是通过内置 Web 服务器。Wails 提供了一种不同的方法:它提供了将 Go 代码和 Web
-前端都包装成单个二进制文件的能力。通过提供工具,可以很轻松的完成项目的创建、编译和打包。你所要做的就是发挥创意!
-
-官方文档可以在 [https://wails.app](https://wails.app) 中找到。
-
-国内镜像站点 [https://wails.top](https://wails.top)。
+[English](README.md) | [简体中文](README.zh-Hans.md)
## 内容目录
+点我 打开/关闭 目录列表
+
- [1. 国际化](#nav-1)
- [2. 内容目录](#nav-2)
-- [3. 特征](#nav-3)
-- [4. 赞助商](#nav-4)
-- [5. 安装](#nav-5)
- - [5.1 MacOS](#nav-5-1)
- - [5.2 Linux](#nav-5-2)
- - [5.2.1 Debian/Ubuntu](#nav-5-2-1)
- - [5.2.2 Arch Linux / ArchLabs / Ctlos Linux](#nav-5-2-2)
- - [5.2.3 Centos](#nav-5-2-3)
- - [5.2.4 Fedora](#nav-5-2-4)
- - [5.2.5 VoidLinux & VoidLinux-musl](#nav-5-2-5)
- - [5.2.6 Gentoo](#nav-5-2-6)
- - [5.3 Windows](#nav-5-3)
+- [3. 项目介绍](#nav-3)
+ - [3.1 官方网站](#nav-3-1)
+- [4. 功能](#nav-4)
+- [5. 赞助商](#nav-5)
- [6. 安装](#nav-6)
-- [7. 下一步](#nav-7)
+ - [6.1 MacOS](#nav-6-1)
+ - [6.2 Linux](#nav-6-2)
+ - [6.2.1 Debian/Ubuntu](#nav-6-2-1)
+ - [6.2.2 Arch Linux / ArchLabs / Ctlos Linux](#nav-6-2-2)
+ - [6.2.3 Centos](#nav-6-2-3)
+ - [6.2.4 Fedora](#nav-6-2-4)
+ - [6.2.5 VoidLinux & VoidLinux-musl](#nav-6-2-5)
+ - [6.2.6 Gentoo](#nav-6-2-6)
+ - [6.3 Windows](#nav-6-3)
+- [7. 使用方法](#nav-7)
+ - [7.1 下一步](#nav-7-1)
- [8. 常见问题](#nav-8)
- [9. 贡献者](#nav-9)
- [10. 特别提及](#nav-10)
- [11. 许可协议](#nav-11)
- [12. 特别感谢](#nav-12)
+
@@ -143,7 +161,7 @@
-
+
## 安装
@@ -152,7 +170,7 @@ Wails 使用 cgo 与原生渲染引擎结合,因此需要依赖一些平台的
- Go 1.16
- npm
-
+
### MacOS
@@ -160,11 +178,11 @@ Wails 使用 cgo 与原生渲染引擎结合,因此需要依赖一些平台的
`xcode-select --install`
-
+
### Linux
-
+
#### Debian/Ubuntu
@@ -176,7 +194,7 @@ _Ubuntu: 16.04, 18.04, 19.04_
_也成功测试了: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neon_, Pop!\_OS
-
+
#### Arch Linux / ArchLabs / Ctlos Linux
@@ -184,7 +202,7 @@ _也成功测试了: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neo
_也成功测试了: Manjaro & ArcoLinux_
-
+
#### Centos
@@ -192,7 +210,7 @@ _也成功测试了: Manjaro & ArcoLinux_
_CentOS 6, 7_
-
+
#### Fedora
@@ -200,39 +218,39 @@ _CentOS 6, 7_
_Fedora 29, 30_
-
+
#### VoidLinux & VoidLinux-musl
`xbps-install gtk+3-devel webkit2gtk-devel`
-
+
#### Gentoo
`sudo emerge gtk+:3 webkit-gtk`
-
+
### Windows
Windows 需要 GCC 和相关工具。 建议从 [http://tdm-gcc.tdragon.net/download](http://tdm-gcc.tdragon.net/download) 下载, 安装完成,您就可以开始了。
-
+
-## 安装
+## 使用方法
**确保 Go modules 是开启的:GO111MODULE=on 并且 go/bin 在您的 PATH 变量中。**
安装很简单,运行以下命令:
-
+```
go get -u github.com/wailsapp/wails/cmd/wails
-
+```
-
+
-## 下一步
+### 下一步
建议在此时阅读 [https://wails.app](https://wails.app) 上面的文档.
@@ -244,14 +262,14 @@ go get -u github.com/wailsapp/wails/cmd/wails
取决于您的要求。它旨在使 Go 程序员可以轻松制作轻量级桌面应用程序或在其现有应用程序中添加前端。尽管 Wails 当前不提供对诸如菜单之类的原生元素的钩子,但将来可能会改变。
-- 这个项目针对的是谁?
+- 这个项目针对的是哪些人?
希望将 HTML / JS / CSS 前端与其应用程序捆绑在一起的程序员,而不是借助创建服务并打开浏览器进行查看的方式。
- 名字怎么来的?
当我看到 WebView 时,我想"我真正想要的是围绕构建 WebView 应用程序工作,有点像 Rails 对于 Ruby"。因此,最初它是一个文字游戏(Webview on
- Rails)。碰巧也是我来自的 [国家](https://en.wikipedia.org/wiki/Wales) 的英文名字的同音。所以就是他了。
+ Rails)。碰巧也是我来自的 [国家](https://en.wikipedia.org/wiki/Wales) 的英文名字的同音。所以就是它了。
@@ -302,6 +320,7 @@ go get -u github.com/wailsapp/wails/cmd/wails
+
@@ -311,9 +330,9 @@ go get -u github.com/wailsapp/wails/cmd/wails
- [Dustin Krysak](https://wiki.ubuntu.com/bashfulrobot) - 他的支持和反馈是巨大的。
- [Serge Zaitsev](https://github.com/zserge) - Wails 窗口所使用的 [Webview](https://github.com/zserge/webview) 的作者。
-- [Byron](https://github.com/bh90210) - 有时,Byron 单枪匹马地保持这个项目活着。没有他令人难以置信的投入,我们永远不会得到 v1 。
+- [Byron](https://github.com/bh90210) - 有时,Byron 一个人保持这个项目活跃着。没有他令人难以置信的投入,我们永远不会得到 v1 。
-This project was mainly coded to the following albums:
+编写项目代码时伴随着以下专辑:
- [Manic Street Preachers - Resistance Is Futile](https://open.spotify.com/album/1R2rsEUqXjIvAbzM0yHrxA)
- [Manic Street Preachers - This Is My Truth, Tell Me Yours](https://open.spotify.com/album/4VzCL9kjhgGQeKCiojK1YN)
@@ -341,7 +360,7 @@ This project was mainly coded to the following albums:

- 非常感谢Pace对项目的赞助,并帮助将 Wails 移植到 Apple Silicon !
+ 非常 感谢Pace对项目的赞助,并帮助将 Wails 移植到 Apple Silicon !
如果您正在寻找一个强大并且快速和易于使用的项目管理工具,可以看看他们!
+``` go get -u github.com/wailsapp/wails/cmd/wails -+``` - + -## Next Steps +### Next Steps It is recommended at this stage to read the comprehensive documentation at [https://wails.app](https://wails.app). @@ -345,7 +360,7 @@ This project was mainly coded to the following albums:

- A huge thanks to Pace for sponsoring the project and helping the efforts to get Wails ported to Apple Silicon!
+ A huge thanks to Pace for sponsoring the project and helping the efforts to get Wails ported to Apple Silicon!
If you are looking for a Project Management tool that's powerful but quick and easy to use, check them out!
From 8f9fae6ad9cef4d1f3a02994cd177153528bacf0 Mon Sep 17 00:00:00 2001 From: misitebao Date: Sun, 31 Oct 2021 01:01:30 +0800 Subject: [PATCH 4/5] docs: synchronize chinese readme logo size --- README.zh-Hans.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.zh-Hans.md b/README.zh-Hans.md index 32f7e3521..7095dab46 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -1,5 +1,5 @@
- 
+ 
使用 Go 和 Web 技术构建桌面应用程序。
From f6c2d4ae6bf07ebf5324765fd32b8a4cec639a1f Mon Sep 17 00:00:00 2001
From: misitebao
Date: Sun, 31 Oct 2021 02:31:49 +0800
Subject: [PATCH 5/5] docs: synchronize all chinese documents
---
.../guides/application-development.mdx | 9 +-
.../current/guides/frameless.mdx | 4 +
.../current/guides/templates.mdx | 1 +
.../current/guides/windows.mdx | 8 +-
.../current/howdoesitwork.mdx | 4 +-
.../current/reference/options.mdx | 4 +-
.../current/reference/runtime/dialog.mdx | 207 ++++++++++++++----
7 files changed, 187 insertions(+), 50 deletions(-)
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/application-development.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/application-development.mdx
index 6cd13c452..aa2c51f35 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/application-development.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/application-development.mdx
@@ -149,11 +149,16 @@ Wails v2 处理资源的方式的伟大之处在于它没有!您唯一需要
## 内置开发服务器
-TODO: 待同步
+运行`wails dev`将启动内置的开发服务器,它将在您的项目目录中启动一个文件监听器。
+默认情况下,如果有任何文件更改,wails 会检查它是否是应用程序文件(默认:.go,可使用`-e`标志配置)。如果是,那么它将重新构建您的应用程序并重新启动它。如果更改的文件在`assetdir`目录中,它会在很短的时间后重新加载。
+
+开发服务器使用一种称为“防抖”的技术,这意味着它不会立即重新加载,因为可能会在短时间内更改多个文件。当触发发生时,它会在发出重新加载之前等待一定的时间。
+如果发生另一个触发,它会再次重置为等待时间。默认情况下,此值为 100ms。如果此值不适用于您的项目,则可以使用`-debounce`标志进行配置。如果使用,此值将保存到您的项目配置中并成为默认值。
## 外部开发服务器
-TODO: 待同步
+一些框架带有自己的实时重新加载服务器,但是它们将无法利用 Wails Go 绑定。在这种情况下,最好运行一个监听脚本,将项目重新构建到构建目录中,Wails 将监视该目录。
+有关示例,请参阅使用[rollup](https://rollupjs.org/guide/en/)的默认 svelte 模板。对于[create-react-app](https://create-react-app.dev/),可以使用[此脚本](https://gist.github.com/int128/e0cdec598c5b3db728ff35758abdbafd)来实现类似的结果。
## Go 模块
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/frameless.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/frameless.mdx
index aad005810..a1052bf26 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/frameless.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/frameless.mdx
@@ -25,3 +25,7 @@ Wails 为拖动窗口提供了一个简单的解决方案:任何具有“data-