-
使用 Xcode 中的智能体翻译你的 App
了解 Xcode 和编码智能体如何根据 App 的情境帮助你翻译字符串目录。我们将介绍审核翻译输出和迭代本地化的策略,以便你为全球用户提供量身定制的体验。
章节
- 0:00 - Introduction
- 1:49 - Add translations
- 8:11 - Review and iterate
- 11:02 - Best practices
资源
相关视频
WWDC26
WWDC25
WWDC24
WWDC22
Tech Talks
-
搜索此视频…
-
-
3:02 - Localizing strings in SwiftUI
// Localizing strings in SwiftUI Text("Hello, world!", comment: "A standard greeting") -
3:11 - Localizing strings in SwiftUI with custom table name
// Localizing strings in SwiftUI with custom table name Text("Hello, world!", tableName: "Greetings", comment: "A standard greeting") -
11:21 - Localizing strings in SwiftUI
// Localizing strings in SwiftUI Text("Hello, world!", comment: "A standard greeting") -
11:25 - Localizing strings elsewhere
// Localizing strings elsewhere String(localized: "Hello, world!", comment: "A standard greeting") LocalizedStringResource("Hello World!", bundle: #bundle, comment: "A standard greeting") -
13:39 - Field for machine-translated strings in the XLIFF
// Field for machine-translated strings in the XLIFF <trans-unit id="Grand Canyon" xml:space="preserve"> <source>Grand Canyon</source> <target state="translated" state-qualifier="leveraged-mt">Grand Canyon</target> <note>Name of the ‘Grand Canyon’ landmark.</note> </trans-unit>
-
-
- 0:00 - Introduction
Translate your app using agents in Xcode. Xcode considers the context of strings used in your app and includes that in the feed to translation agents.
- 1:49 - Add translations
Ask an agent to translate your app, then watch as Xcode prepares the project, builds all targets to discover strings, and populates translated String Catalogs.
- 8:11 - Review and iterate
See how to review the outcome of translations, identify UI truncation issues, and iterate on the localization of your app.
- 11:02 - Best practices
Ensure user-facing strings are localizable and help guide translation agents with glossaries or custom terminology rules.