Contents

localizedString(forCollatorIdentifier:)

Returns the localized string for the specified collator identifier.

Declaration

func localizedString(forCollatorIdentifier collatorIdentifier: String) -> String?

Parameters

  • collatorIdentifier:

    The identifier for the collator whose name you want.

Return Value

The localized name of the collator.

Discussion

This method is equivalent to calling the displayName(forKey:value:) method passing the collatorIdentifier key and collatorIdentifier value.

See Also

Getting Display Information About a Locale