---
title: "localizedName(forInputSource:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nstextinputcontext/localizedname(forinputsource:)"
---

# localizedName(forInputSource:)

Returns the display name for the given text input source identifier.

## Declaration

```swift
class func localizedName(forInputSource inputSourceIdentifier: NSTextInputSourceIdentifier) -> String?
```

## Parameters

- `inputSourceIdentifier`: The text input source identifier.

## Return Value

Return Value The localized display name for inputSourceIdentifier.

## See Also

### Handling Input Sources

- [handleEvent(_:)](appkit/nstextinputcontext/handleevent(_:).md)
- [discardMarkedText()](appkit/nstextinputcontext/discardmarkedtext().md)
- [invalidateCharacterCoordinates()](appkit/nstextinputcontext/invalidatecharactercoordinates().md)
- [keyboardInputSources](appkit/nstextinputcontext/keyboardinputsources.md)
- [selectedKeyboardInputSource](appkit/nstextinputcontext/selectedkeyboardinputsource.md)
- [NSTextInputSourceIdentifier](appkit/nstextinputsourceidentifier.md)
