region

Returns the region of the locale. For example, “US” for “en_US”, “GB” for “en_GB”, “PT” for “pt_PT”.

iOS
16+
macOS
13+
tvOS
16+
watchOS
9+
var region: Locale.Region? { get }

note: Typically this is equivalent to the language region, unless there’s an rg override in the locale identifier. For example, for “en_GB@rg=USzzzz”, the language region is “GB”, while the locale region is “US”. Language.region represents the region variant of the language, such as “British English” in this example, while Locale.region controls the region-specific default values, such as measuring system and first day of the week.