<!--
{
  "availability" : [
    "iOS: 8.0.0 - 16.0.0",
    "iPadOS: 8.0.0 - 16.0.0",
    "macCatalyst: 8.0.0 - 16.0.0",
    "macOS: 10.10.0 - 13.0.0",
    "tvOS: 9.0.0 - 16.0.0",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Locale/characterDirection(forLanguage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation6LocaleV18characterDirection11forLanguageSo08NSLocalefD0VSS_tFZ"
  },
  "title" : "characterDirection(forLanguage:)"
}
-->

# characterDirection(forLanguage:)

Returns the character direction for a specified language code.

```
static func characterDirection(forLanguage isoLangCode: String) -> Locale.LanguageDirection
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)