XLIFF benefits • Abstracts localization from code • Contains development-language and translated strings • Supports multiple file types in a single document 6
Xcode Localization Catalog • New type of localization artifact with .xcloc extension • Support localization of assets beyond strings • Provide additional contextual information 11
structure - Localized Contents ิ • Organized into the same file system hierarchy as Xcode project ͡Ό͋ exportޙʹ hierarchyʹมߋ͕͋ͬͨ߹Ͳ͏ͳΔ͔…ʁ → import࣌ʹ missing warning͕ग़·͢ 17
structure - Source Contents Assets used to produce the Localized Contents • Organized into the same file system hierarchy as Xcode project • Provided for context 18
Intent Definition 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 intent.suggestedInvocationPhrase = NSString.deferredLocalizedIntentsString(with: "Go to Mars!") 25