Ios 使用NSLocalizedString的CoreSpotlight内容描述

Ios 使用NSLocalizedString的CoreSpotlight内容描述,ios,ios9,corespotlight,Ios,Ios9,Corespotlight,是否可以本地化Core Spotlight的CSSearchableItemAttributeSet中使用的内容描述?我没有这样做,我找不到关于它的信息 let attributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeImage as String) attributeSet.contentDescription = NSLocalizedString("contentDescription", comment:

是否可以本地化Core Spotlight的CSSearchableItemAttributeSet中使用的内容描述?我没有这样做,我找不到关于它的信息

let attributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeImage as String)

 attributeSet.contentDescription = NSLocalizedString("contentDescription", comment: "")

为此,您需要使用
CSLocalizedString
。请参阅下面的链接:


为什么我需要使用CSLocalizedString进行此操作?