---
title: localized
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/sortcomparator/localized
---

# localized

A comparator that compares a string using a localized comparison in the current locale.

## Declaration

```swift
static var localized: String.Comparator { get }
```

## See Also

### Inspecting a Comparator

- [order](foundation/sortcomparator/order.md)
- [localizedStandard](foundation/sortcomparator/localizedstandard.md)
