---
title: "init(localizedStrings:)"
framework: corespotlight
role: symbol
role_heading: Initializer
path: "corespotlight/cslocalizedstring/init(localizedstrings:)"
---

# init(localizedStrings:)

Initializes a CSLocalizedString object with the specified dictionary of localized strings.

## Declaration

```swift
init(localizedStrings: [AnyHashable : Any])
```

## Parameters

- `localizedStrings`: A dictionary in which each key-value pair consists of a language designator and a localized string. For example, you might pass in a dictionary like @{@"en":@"Email Message"}.

## Return Value

Return Value An object that contains the localized versions for a specific string.
