---
title: "init(stringLiteral:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/localizedstringresource/init(stringliteral:)"
---

# init(stringLiteral:)

Creates a localized string resource from the specified string literal.

## Declaration

```swift
init(stringLiteral value: String)
```

## Parameters

- `value`: The key to use when looking up a localized value.

## Discussion

Discussion This initializer uses the default values from LocalizedStringResource/init(_:table:locale:bundle:comment:) for the table, locale, bundle, and comment.

## See Also

### Creating a localized string resource from literal values

- [init(stringInterpolation:)](foundation/localizedstringresource/init(stringinterpolation:).md)
