---
title: allowedInputSourceLocales
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/allowedinputsourcelocales
---

# allowedInputSourceLocales

An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus.

## Declaration

```swift
var allowedInputSourceLocales: [String]? { get set }
```

## Discussion

Discussion You can use the meta-locale identifier, NSAllRomanInputSourcesLocaleIdentifier, to specify input sources that are limited for Roman script editing.

## See Also

### Inserting text

- [insertText(_:)](appkit/nstextview/inserttext(_:).md)
