Contents

localizedString(forIdentifier:)

Returns a localized string for a specified locale identifier.

Declaration

func localizedString(forIdentifier identifier: String) -> String?

Discussion

For example, in the “en” locale, the result for "es" is "Spanish".

See Also

Getting display information about a locale