---
title: languageIdentifier
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/key/languageidentifier
---

# languageIdentifier

The language identifier associated with the range of text.

## Declaration

```swift
static let languageIdentifier: NSAttributedString.Key
```

## Discussion

Discussion The value of this property is an NSString with the language identifier code in ISO 639 format.

## See Also

### Getting translation-related attribute keys

- [morphology](foundation/nsattributedstring/key/morphology.md)
- [inflectionRule](foundation/nsattributedstring/key/inflectionrule.md)
- [inflectionAlternative](foundation/nsattributedstring/key/inflectionalternative.md)
- [agreeWithArgument](foundation/nsattributedstring/key/agreewithargument.md)
- [agreeWithConcept](foundation/nsattributedstring/key/agreewithconcept.md)
- [referentConcept](foundation/nsattributedstring/key/referentconcept.md)
- [localizedNumberFormat](foundation/nsattributedstring/key/localizednumberformat.md)
