View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • Discover String Catalogs

    Discover how Xcode 15 makes it easy to localize your app by managing all of your strings in one place. We'll show you how to extract, edit, export, and build strings in your project using String Catalogs. We'll also share how you can adopt String Catalogs in existing projects at your own pace by choosing which files to migrate.

    Capítulos

    • 0:00 - Introduction
    • 1:29 - Demo
    • 4:13 - Extract
    • 13:19 - Edit
    • 22:48 - Export
    • 27:52 - Build
    • 28:44 - Migrate
    • 31:03 - Wrap-up

    Recursos

    • Localization
    • Expanding Your App to New Markets
      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC23

    • Spotlight your app with App Shortcuts
    • Unlock the power of grammatical agreement
    • What’s new in Xcode 15
  • Buscar neste vídeo...
    • 4:30 - Localizable string

      String(localized: "Welcome to WWDC!")
    • 4:42 - Localizable string with default value

      String(localized: "WWDC_NOTIFICATION_TITLE",
             defaultValue: "Welcome to WWDC!")
    • 5:05 - Localizable string with comment

      String(localized: "Welcome to WWDC!",
             comment: "Notification banner title")
    • 5:22 - Localizable string with table and comment

      String(localized: "Welcome to WWDC!",
             table: "WWDCNotifications",
             comment: "Notification banner title")
    • 7:36 - Localizable strings in SwiftUI

      // Localizable strings in SwiftUI
      
      struct ContentView: View {
          var body: some View {
              VStack {
                  Label("Thanks for shopping with us!", systemImage: "bag")
                      .font(.title)
      
                  HStack {
                      Button("Clear Cart") { }
      
                      Button("Checkout") { }
                  }
              }
          }
      }
    • 8:01 - Localizable strings in SwiftUI with LocalizedStringKey

      // Localizable strings in SwiftUI
      
      struct ContentView: View {
          var body: some View {
              VStack {
                  // init(_ titleKey: LocalizedStringKey, systemImage name: String)
                  Label("Thanks for shopping with us!", systemImage: "bag")
                      .font(.title)
                  
                  HStack {
                      Button("Clear Cart") { }
      
                      Button("Checkout") { }
                  }
              }
          }
      }
    • 8:08 - Localizable strings in SwiftUI text view

      // Localizable strings in SwiftUI
      
      struct ContentView: View {
          var body: some View {
              VStack {
                  Label {
                      Text("Thanks for shopping with us!", comment: "Label above checkout button")
                  } icon: {
                      Image(systemName: "bag")
                  }
                  .font(.title)
                  
                  HStack {
                      Button("Clear Cart") { }
                      Button("Checkout") { }
                  }
              }
          }
      }
    • 8:16 - Localizable strings in SwiftUI custom view

      // Localizable strings in SwiftUI
      
      struct CardView: View {
          let title: LocalizedStringResource
          let subtitle: LocalizedStringResource
      
          var body: some View {
              ZStack {
                  RoundedRectangle(cornerRadius: 10.0)
                  VStack {
                      Text(title)
                      Text(subtitle)
                  }
                  .padding()
              }
          }
      }
      
      CardView(title: "Recent Purchases", subtitle: "Items you’ve ordered in the past week.")
    • 9:03 - Localizable strings in Swift displayed at runtime

      // Localizable strings in Swift
      
      import Foundation
      
      func stringsToPresent() -> (String, AttributedString) {
          let deferredString = LocalizedStringResource("Title")
        
          …
        
          return (
              String(localized: deferredString),
              AttributedString(localized: "**Attributed** _Subtitle_")
          )
      }
    • 9:44 - Localizable strings in Objective-C

      // Localizable strings in Objective-C
      
      #import <Foundation/Foundation.h>
      
      - (NSString *)stringForDisplay {
          return NSLocalizedString(@"Recent Purchases", @"Button Title");
      }
      
      #define MyLocalizedString(key, comment) \
          [myBundle localizedStringForKey:key value:nil table:nil]
    • 10:04 - Localizable strings in C

      // Localizable strings in C
      
      #include <CoreFoundation/CoreFoundation.h>
      
      CFStringRef stringForDisplay(void) {
          return CFCopyLocalizedString(CFSTR("Recent Purchases"), CFSTR("Button Title"));
      }
      
      #define MyLocalizedString(key, comment) \
          CFBundleCopyLocalizedString(myBundle, key, NULL, NULL)
    • 11:23 - App Shortcut phrases

      // App Shortcut phrases
      
      struct FoodTruckShortcuts: AppShortcutsProvider {
          static var appShortcuts: [AppShortcut] {
              AppShortcut(
                  intent: ShowTopDonutsIntent(),
                  phrases: [
                      "\(.applicationName) Trends for \(\.$timeframe)",
                      "Show trending donuts for \(\.$timeframe) in \(.applicationName)",
                      "Give me trends for \(\.$timeframe) in \(.applicationName)"
                  ]
              )
          }
      }
    • 23:53 - Stringsdict in XLIFF

      // Stringsdict in XLIFF
      
      <trans-unit id="/%lld Recent Visitors:dict/NSStringLocalizedFormatKey:dict/:string">
          <source>%#@recentVisitors@</source>
          <target>%#@recentVisitors@</target>
      </trans-unit>
      
      <trans-unit id="/%lld Recent Visitors:dict/recentVisitors:dict/one:dict/:string">
          <source>%lld Recent Visitor</source>
          <target>%lld Visitante Recente</target>
      </trans-unit>
      
      <trans-unit id="/%lld Recent Visitors:dict/recentVisitors:dict/other:dict/:string">
          <source>%lld Recent Visitors</source>
          <target>%lld Visitantes Recentes</target>
      </trans-unit>
    • 24:08 - String Catalog in XLIFF

      // String Catalog in XLIFF
      
      <trans-unit id="%lld Recent Visitors|==|plural.one">
          <source>%lld Recent Visitor</source>
          <target>%lld Visitante Recente</target>
      </trans-unit>
      
      <trans-unit id="%lld Recent Visitors|==|plural.other">
          <source>%lld Recent Visitors</source>
          <target>%lld Visitantes Recentes</target>
      </trans-unit>
    • 24:58 - String Catalog variations in XLIFF

      // Overriding variation in XLIFF
      
      <trans-unit id="Bird Food Shop|==|device.applewatch">
          <source>Bird Food Shop</source>
          <target>Loja de Comida</target>
      </trans-unit>
      
      <trans-unit id="Bird Food Shop|==|device.other">
          <source>Bird Food Shop</source>
          <target>Loja de Comida de Passarinho</target>
      </trans-unit>

Developer Footer

  • Vídeos
  • WWDC23
  • Discover String Catalogs
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines