21,159
stars
+-5+-6+-13
4,999
forks
–
watchers
–
prs
–
issues
–
releases
–
discussions
README
The Swift Programming Language (Simplified Chinese Version by SwiftGG) ! 🚀 MiniMax Token Plan 惊喜上线!新增语音、音乐、视频和图片生成权益。邀请好友享双重好礼,助力开发体验! 好友立享 8.8折 专属优惠 + Builder 权益,你赢返利 + 社区特权! 👉 立即参与 --- English Version | 中文版本 English Version This repository contains the source for The Swift Programming Language (sometimes abbreviated as TSPL), which is published on [docs.swift.org][published] and built using [Swift-DocC][docc]. This repository includes the latest version of TSPL, as well as Simplified Chinese translations corresponding to different Swift versions. Building Clone this repository and run docc preview swift-6.docc in this repository's root directory. After running DocC, open the link that docc outputs to display a local preview in your browser. Current Status - Latest English version of The Swift Programming Language. [Latest commit: 11a2b29][11a2b29] - Corresponding Simplified Chinese translations (in progress and archived): - Swift 6 beta (currently in translation) - Swift 5.x and earlier versions (available for reading on [GitBook][legacy-documentations]) How to Contribute 1. Fork this repository to your account. Claim a translation task labeled as Swift x translation in the issues. Create a branch in your forked repository corresponding to the issue, setting the source branch to the current Swift version being translated (e.g., swift-6-beta-translation). 2. Install the docc command-line tool by either downloading the toolchain from Swift.org or installing Xcode. Note: If you installed DocC by downloading a toolchain from Swift.org, docc is located in usr/bin/, relative to the installation path of the toolchain. Make sure your shell's PATH environment variable includes that directory. If you installed DocC by downloading Xcode, run xcrun docc preview swift-6.docc instead. 3. Replace the content of the original Markdown file with your Chinese translation, following the terminology table below and the [SwiftGG style guide][swiftgg-style-guide]. Submit your translation through a Pull Request. Once verified by SwiftGG members, it will be merged into the current translation branch. Contributors We extend our heartfelt thanks to all our contributors. You can find the [list of contributors here][contributors]. 中文版本 本仓库包含 The Swift Programming Language (缩写为 TSPL) 的源代码, 该文档发布在 [docs.swift.org][published] 上, 并使用 [Swift-DocC][docc] 构建。 本仓库包括 TSPL 的最新版本,以及对应不同 Swift 版本的简体中文翻译。 构建 克隆此仓库并在仓库根目录运行 docc preview swift-6.docc。 运行 DocC 后,打开 docc 输出的链接,即可在浏览器中显示本地预览。 当前状态 - The Swift Programming Language 的最新英文版本。[最新提交: 378f76a][https://github.com/swiftlang/swift-book/commit/378f76a4a0fb29cd72722686f78cb7c097437796] - 对应的简体中文翻译 (进行中和已归档): - Swift 6 beta (当前正在翻译) - Swift 5.x 及更早版本 (可在 [GitBook][legacy-documentations] 上阅读) 如何贡献 1. 首先,将此仓库 fork 到您的账户。在 issues 中认领标记为 Swift x translation 的翻译任务。在您 fork 的仓库中创建与 issue 对应的分支,将源分支设置为当前正在翻译的 Swift 版本 (例如,swift-6-beta-translation)。 2. 通过从 Swift.org 下载 toolchain 或安装 Xcode