Contents

identifier(_:)

Returns the locale identifier, in the specified standard format.

Declaration

func identifier(_ type: Locale.IdentifierType) -> String

Parameters

  • type:

    The standard locale identifier format to use for the returned string.

Return Value

The locale identifier, formatted in accordance with the specified identifier type.

See Also

Getting information about a locale