---
title: "localizableTextProvider(withStringsFileTextKey:)"
framework: clockkit
role: symbol
role_heading: Type Method
path: "clockkit/clktextprovider/localizabletextprovider(withstringsfiletextkey:)"
---

# localizableTextProvider(withStringsFileTextKey:)

Creates a localizable simple text provider using the strings file key for the text.

## Declaration

```swift
class func localizableTextProvider(withStringsFileTextKey textKey: String) -> Self
```

## Parameters

- `textKey`: The key for the desired text. This key must appear in the localized string files named ckcomplication.strings in the WatchKit extension target.

## Return Value

Return Value A text provider object built from the specified arguments.

## Discussion

Discussion Use this method to create a text provider that returns localized strings.

## See Also

### Creating Localized Text Providers

- [localizableTextProvider(withStringsFileTextKey:shortTextKey:)](clockkit/clktextprovider/localizabletextprovider(withstringsfiletextkey:shorttextkey:).md)
- [localizableTextProvider(withStringsFileFormatKey:textProviders:)](clockkit/clktextprovider/localizabletextprovider(withstringsfileformatkey:textproviders:).md)
