---
title: "localizedName(for:locale:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/timezone/localizedname(for:locale:)"
---

# localizedName(for:locale:)

Returns the name of the receiver localized for a given locale.

## Declaration

```swift
func localizedName(for style: TimeZone.NameStyle, locale: Locale?) -> String?
```
