From 059c57d8925822f3a3e30c9c5d012f6574a6410b Mon Sep 17 00:00:00 2001 From: hltj Date: Tue, 17 Oct 2023 21:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=83=A8=E5=88=86=E7=BF=BB?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/topics/getting-started.md | 2 +- docs/topics/multiplatform/multiplatform.md | 30 +++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/topics/getting-started.md b/docs/topics/getting-started.md index f4c15707f7e..7b7838c1ef8 100644 --- a/docs/topics/getting-started.md +++ b/docs/topics/getting-started.md @@ -141,7 +141,7 @@ Kotlin 已包含在每个 [IntelliJ IDEA](https://www.jetbrains.com/idea/downloa * [协程](coroutines-overview.md) * [日期时间](https://github.com/Kotlin/kotlinx-datetime#readme) - > Learn more about [adding dependencies on libraries](multiplatform-add-dependencies.md). + > 了解关于[添加库依赖项](multiplatform-add-dependencies.md)的更多信息。 > 还可以在[社区驱动列表](https://libs.kmp.icerock.dev/)中找到多平台库。 > {type="tip"} diff --git a/docs/topics/multiplatform/multiplatform.md b/docs/topics/multiplatform/multiplatform.md index e89c16219be..2bcd1962ca3 100644 --- a/docs/topics/multiplatform/multiplatform.md +++ b/docs/topics/multiplatform/multiplatform.md @@ -18,32 +18,32 @@ Kotlin 多平台技术旨在简化跨平台项目的开发。 它减少了为[使用 Ktor 与 SQLDelight 创建多平台应用](multiplatform-mobile-ktor-sqldelight.md)教程, 其中会创建包含两个平台共享代码的模块的 Android 与 iOS 应用程序。 -Thanks to [Compose Multiplatform](https://www.jetbrains.com/lp/compose-multiplatform/), -a Kotlin-based declarative UI framework developed by JetBrains, -you can also share UIs across Android and iOS to create fully cross-platform apps: +借助 [Compose 多平台](https://www.jetbrains.com/lp/compose-multiplatform/) +(JetBrains 开发的基于 Kotlin 的声明式 UI 框架), +还可以跨 Android 与 iOS 共享 UI 来创建完全跨平台的应用: -![Sharing different levels and UI](multiplatform-compose.svg){width=600} +![共享不同级别与 UI](multiplatform-compose.svg){width=600} -Try this [Compose Multiplatform mobile application](https://github.com/JetBrains/compose-multiplatform-ios-android-template/#readme) -template to create your own mobile application with UIs shared between both platforms. +尝试使用这个 [Compose 多平台移动端应用程序](https://github.com/JetBrains/compose-multiplatform-ios-android-template/#readme)模板来创建自己的移动应用程序,并在两个平台间共享 UI。 ### 多平台库 -Kotlin Multiplatform is also helpful for library authors. You can create a multiplatform library with common code and its -platform-specific implementations for JVM, web, and native platforms. Once published, a multiplatform library can be used -as a dependency in other cross-platform projects. +Kotlin 多平台对库作者也很有帮助。 可以使用公共代码及其面向 +JVM、web 与原生平台的特定于平台的实现来创建多平台库。 发布后,多平台库可以用作其他跨平台项目的依赖项。 -See the [Create and publish a multiplatform library](multiplatform-library.md) tutorial, where you will create -a multiplatform library, test it, and publish it to Maven. +参见[创建并发布多平台库](multiplatform-library.md)教程,在该教程中会创建一个多平台库、对其进行测试并将其发布到 Maven。 -### Desktop applications +### 桌面应用程序 Compose Multiplatform helps share UIs across desktop platforms like Windows, macOS, and Linux. Many applications, including the [JetBrains Toolbox app](https://blog.jetbrains.com/kotlin/2021/12/compose-multiplatform-toolbox-case-study/), @@ -81,5 +81,5 @@ Kotlin provides the following code sharing mechanisms: 浏览跨平台应用程序范例以了解 Kotlin 多平台的工作原理: * [Kotlin 多平台移动端范例](multiplatform-mobile-samples.md) -* [Compose Multiplatform samples](https://github.com/JetBrains/compose-multiplatform/blob/master/examples/README.md) +* [Compose 多平台范例](https://github.com/JetBrains/compose-multiplatform/blob/master/examples/README.md)