New Localization Workflows in Xcode 10

WWDC 2018

Posted by Den on July 13, 2018 · 5 mins read
New Localization Workflows in Xcode 10

New Localization Workflows in Xcode 10

WWDC 2018

New Localization Workflows in Xcode 10

WWDC 2018

Xcode Localization Catalog

  • New type of localization artifact with .xcloc extension
  • You can localize Non-strings localizable assets (HTML, image, etc) 👍
  • Provide additional contextual information

contents.json

  • Development region
  • Target locale
  • Tool Info
  • Version

Localized Contents

  • XLIFF 1.2 document containing the project localized strings
  • Non-strings localizable assets
  • Organized into the same file system hierarchy as Xcode project
  • Override resources

Source Contents

  • Assets used to produce the Localized Contents
  • Organized into the same file system hierarchy as Xcode project
  • Provided for context

Notes

  • Provide additional information to the localizers
  • Screenshots
  • Readme file

Continuous Integration-export

Demo (Localized image)

Intent Definition File

  • Used to define custom intents for shortcuts
  • .intentdefinition extension
  • Base localized
  • Localized using .strings files and .stringsdict files

Localizable content — strings

Deferred Localized Intents String

  • Localization happens when the string is presented to the user
  • Used when preparing the intent for donation

Siri Shortcuts Localization

  • Xcode combines Shortcut types and enums when generating .strings file
  • .strings and/or .stringsdict are used to localize Shortcuts
  • Use deferredLocalizedIntentsString API for donated intents
  • Strings defined in .stringsdict file are preferred at runtime
  • Use strings or strings IDs as Localized String Key