Electron 新的国际化网站
Electron 的新网站 electronjs.org 上线!我们已将静态 Jekyll 网站替换为 Node.js 网络服务器,这使我们能够灵活地实现网站的国际化,并为更多激动人心的新功能铺平道路。
¥Electron has a new website at electronjs.org! We've replaced our static Jekyll site with a Node.js webserver, giving us flexibility to internationalize the site and paving the way for more exciting new features.
🌍 翻译
¥🌍 Translations
我们已启动网站国际化进程,旨在让全球开发者都能轻松使用 Electron 应用开发。我们正在使用一个名为 Crowdin 的本地化平台,该平台与 GitHub 集成,在内容翻译成不同语言时自动打开和更新拉取请求。
¥We've begun the process of internationalizing the website with the goal of making Electron app development accessible to a global audience of developers. We're using a localization platform called Crowdin that integrates with GitHub, opening and updating pull requests automatically as content is translated into different languages.
虽然我们一直在默默地进行这项工作,但已有超过 75 位 Electron 社区成员自然而然地发现了这个项目,并加入了网站国际化和将 Electron 文档翻译成 20 多种语言的努力。我们看到世界各地的人们都在为 每日贡献 努力,其中法语、越南语、印尼语和中文等语言的翻译工作正在稳步推进。
¥Though we've been working quietly on this effort so far, over 75 Electron community members have already discovered the project organically and joined in the effort to internationalize the website and translate Electron's docs into over 20 languages. We are seeing daily contributions from people all over the world, with translations for languages like French, Vietnamese, Indonesian, and Chinese leading the way.
要选择你的语言并查看翻译进度,请访问 electronjs.org/languages
¥To choose your language and view translation progress, visit electronjs.org/languages
如果你精通多语言,并且有兴趣帮助翻译 Electron 的文档和网站,请访问 electron/electron-i18n 仓库,或者直接使用 Crowdin 进行翻译,你可以使用你的 GitHub 账户登录。
¥If you're multilingual and interested in helping translate Electron's docs and website, visit the electron/electron-i18n repo, or jump right into translating on Crowdin, where you can sign in using your GitHub account.
目前,Crowdin 上的 Electron 项目支持 21 种语言。添加更多语言支持非常简单,如果你有兴趣帮助翻译,但没有看到你要使用的语言列表,请 告诉我们,我们将为你启用。
¥There are currently 21 languages enabled for the Electron project on Crowdin. Adding support for more languages is easy, so if you're interested in helping translate but you don't see your language listed, let us know and we'll enable it.
原始翻译文档
¥Raw Translated Docs
如果你更喜欢阅读原始 Markdown 文件中的文档,现在你可以使用任何语言进行操作:
¥If you prefer to read documentation in raw markdown files, you can now do that in any language:
git clone https://github.com/electron/electron-i18n
ls electron-i18n/content
应用页面
¥App Pages
从今天起,任何 Electron 应用都可以在 Electron 网站上轻松拥有自己的页面。如需查看一些示例,请查看 Etcher、1Clipboard 或 GraphQL 游乐场,如图所示,该图位于网站的日文版中:
¥As of today, any Electron app can easily have its own page on the Electron site. For a few examples, check out Etcher, 1Clipboard, or GraphQL Playground, pictured here on the Japanese version of the site:
市面上有一些非常棒的 Electron 应用,但它们并不总是那么容易找到,而且并非每个开发者都有时间或资源来构建一个合适的网站来营销和分发他们的应用。
¥There are some incredible Electron apps out there, but they're not always easy to find, and not every developer has the time or resources to build a proper website to market and distribute their app.
仅使用 PNG 图标文件和少量应用元数据,我们就能收集有关特定应用的大量信息。使用从 GitHub 收集的数据,应用页面现在可以显示每个拥有公共代码库的应用的屏幕截图、下载链接、版本、发行说明和自述文件。使用从每个应用图标中提取的调色板,我们可以生成 醒目且易于理解的颜色,为每个应用页面提供一些视觉上的区别。
¥Using just a PNG icon file and a small amount of app metadata, we're able to collect a lot of information about a given app. Using data collected from GitHub, app pages can now display screenshots, download links, versions, release notes, and READMEs for every app that has a public repository. Using a color palette extracted from each app's icon, we can produce bold and accessible colors to give each app page some visual distinction.
应用索引页 现在还包含类别和关键字过滤器,以便查找有趣的应用,例如 GraphQL GUI 和 p2p 工具。
¥The apps index page now also has categories and a keyword filter to find interesting apps like GraphQL GUIs and p2p tools.
如果你有一个 Electron 应用想要在网站上展示,请在 electron/electron-apps 代码库上提交拉取请求。
¥If you've got an Electron app that you'd like featured on the site, open a pull request on the electron/electron-apps repository.
使用 Homebrew 的一行安装
¥One-line Installation with Homebrew
macOS 的 Homebrew 软件包管理器有一个名为 cask 的子命令,它可以轻松地在终端中使用单个命令安装桌面应用,就像 brew cask install atom
一样。
¥The Homebrew package manager for macOS has a subcommand called cask
that makes it easy to install desktop apps using a single command in your
terminal, like brew cask install atom
.
我们已开始为热门 Electron 应用收集 Homebrew 的 Cask 名称,现在会在每个包含 Cask 的应用页面上显示安装命令(供 macOS 访问者使用):
¥We've begun collecting Homebrew cask names for popular Electron apps and are now displaying the installation command (for macOS visitors) on every app page that has a cask:
要查看所有使用 Homebrew Cask 名称的应用,请访问 electronjs.org/apps?q=homebrew。如果你知道其他我们尚未索引的带有 cask 的应用,请添加它们!
¥To view all the apps that have homebrew cask names, visit electronjs.org/apps?q=homebrew. If you know of other apps with casks that we haven't indexed yet, please add them!
🌐 新字段
¥🌐 A New Domain
我们已将网站从 electron.atom.io 迁移到新域名:electronjs.org。
¥We've moved the site from electron.atom.io to a new domain: electronjs.org.
Electron 项目诞生于 Atom,这是 GitHub 基于 Web 技术构建的开源文本编辑器。Electron 最初名为 atom-shell
。Atom 是第一个使用它的应用,但很快人们就意识到这个神奇的 Chromium + Node 运行时可以用于各种不同的应用。当微软和 Slack 等公司开始使用 atom-shell
时,很明显,该项目需要一个新名称。
¥The Electron project was born inside Atom, GitHub's open-source text editor
built on web technologies. Electron was originally called atom-shell
. Atom
was the first app to use it, but it didn't take long for folks to realize that
this magical Chromium + Node runtime could be used for all kinds of different
applications. When companies like Microsoft and Slack started to make use of
atom-shell
, it became clear that the project needed a new name.
于是 "Electron" 诞生了。2016 年初,GitHub 组建了一支新团队,专注于 Electron 的开发和维护,不再专注于 Atom 的开发。自那时起,Electron 已被成千上万的应用开发者采用,现在许多大公司都依赖于它,其中许多公司都有自己的 Electron 团队。
¥And so "Electron" was born. In early 2016, GitHub assembled a new team to focus specifically on Electron development and maintenance, apart from Atom. In the time since, Electron has been adopted by thousands of app developers, and is now depended on by many large companies, many of which have Electron teams of their own.
支持 GitHub 的 Electron 项目(例如 Atom 和 GitHub 桌面版)仍然是我们团队的首要任务,但通过迁移到新域名,我们希望能够帮助明确 Atom 和 Electron 之间的技术区别。
¥Supporting GitHub's Electron projects like Atom and GitHub Desktop is still a priority for our team, but by moving to a new domain we hope to help clarify the technical distinction between Atom and Electron.
🐢🚀 Node.js 无处不在
¥🐢🚀 Node.js Everywhere
之前的 Electron 网站是使用 Jekyll(一款流行的基于 Ruby 的静态网站生成器)构建的。Jekyll 是构建静态网站的绝佳工具,但该网站的发展已经开始超出其能力范围。我们想要更多动态功能,例如合理的重定向和动态内容渲染,因此 Node.js 服务器是显而易见的选择。
¥The previous Electron website was built with Jekyll, the popular Ruby-based static site generator. Jekyll is a great tool for building static websites, but the website had started to outgrow it. We wanted more dynamic capabilities like proper redirects and dynamic content rendering, so a Node.js server was the obvious choice.
Electron 生态系统包含使用多种编程语言编写的组件项目,从 Python 到 C++ 再到 Bash。但 JavaScript 是 Electron 的基础,也是我们社区中使用最多的语言。
¥The Electron ecosystem includes projects with components written in many different programming languages, from Python to C++ to Bash. But JavaScript is foundational to Electron, and it's the language used most in our community.
通过将网站从 Ruby 迁移到 Node.js,我们旨在降低希望为网站做出贡献的人的准入门槛。
¥By migrating the website from Ruby to Node.js, we aim to lower the barrier to entry for people wishing to contribute to the website.
⚡ 更轻松的开源参与
¥⚡️ Easier Open-Source Participation
如果你的系统上安装了 Node.js(8 或更高版本)和 git,你可以轻松地在本地运行网站:
¥If you've got Node.js (8 or higher) and git installed on your system, you can easily get the site running locally:
git clone https://github.com/electron/electronjs.org
cd electronjs.org
npm install
npm run dev
新网站托管在 Heroku 上。我们使用部署流水线和 应用审核 功能,该功能会为每个拉取请求自动创建应用的运行副本。这使得审阅者能够轻松查看拉取请求对网站实时副本的实际效果。
¥The new website is hosted on Heroku. We use deployment pipelines and the Review Apps feature, which automatically creates a running copy of the app for every pull request. This makes it easy for reviewers to view the actual effects of a pull request on a live copy of the site.
🙏 感谢贡献者
¥🙏 Thanks to Contributors
我们还要特别感谢世界各地所有贡献时间和精力来帮助改进 Electron 的朋友们。开源社区的热情为 Electron 的成功做出了巨大的贡献。谢谢!
¥We'd like to give special thanks to all the folks around the world who have contributed their own time and energy to help improve Electron. The passion of the open-source community has helped immeasurably in making Electron a success. Thank you!