---
title: documentLanguageCode
framework: datadetection
role: symbol
role_heading: Instance Property
path: datadetection/datadetector/options/documentlanguagecode
---

# documentLanguageCode

An optional value that represents the language code of a specific locale.

## Declaration

```swift
var documentLanguageCode: Locale.LanguageCode?
```

## Discussion

Discussion For more information on locales, see Locale.LanguageCode.

## See Also

### Hints you can provide to add more context for the matching process

- [documentDate](datadetection/datadetector/options/documentdate.md)
- [documentRegion](datadetection/datadetector/options/documentregion.md)
- [documentTimeZone](datadetection/datadetector/options/documenttimezone.md)
