Contents

init(localeIdentifier:)

Initializes a locale using a given locale identifier.

Declaration

init(localeIdentifier string: String)

Parameters

  • string:

    The identifier for the new locale.

Return Value

The initialized locale.

Discussion

This method is the designated initializer for this class.

See Also

Related Documentation

  • Internationalization and Localization Guide
  • Data Formatting Guide

Initializing a Locale