---
title: "localizedStringWithFormat(_:_:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/string/localizedstringwithformat(_:_:)"
---

# localizedStringWithFormat(_:_:)

Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale.

## Declaration

```swift
static func localizedStringWithFormat(_ format: String, _ arguments: any CVarArg...) -> String
```

## See Also

### Creating a String Using Formats

- [init(format:_:)](swift/string/init(format:_:).md)
- [init(format:arguments:)](swift/string/init(format:arguments:).md)
- [init(format:locale:_:)](swift/string/init(format:locale:_:).md)
- [init(format:locale:arguments:)](swift/string/init(format:locale:arguments:).md)
