An object displaying localized text in search results related to your app.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- Core Spotlight
CSLocalized class helps you localize text in searchable items. You can use a
CSLocalized object in place of an
NSString object to display localized text in search results related to your app.
For example, you might use the following code to define a
CSLocalized object for a searchable item you want to identify as “Song” in English: