Skip to content

Instance Method

localizedString(forCollationIdentifier:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Returns a localized string for a specified ICU collation identifier.
func localizedString(forCollationIdentifier collationIdentifier: String) -> String?

Discussion

For example, in the “en” locale, the result for "phonebook" is "Phonebook Sort Order".