init(languageComponents:)

Creates a Locale with the specified language components

iOS
16+
macOS
13+
tvOS
16+
watchOS
9+
init(languageComponents: Locale.Language.Components)