<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/DirectionsConstructorOptions/language",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Property",
  "symbol" : {
    "kind" : "Interface Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structp/mapkit.DirectionsConstructorOptions/language"
  },
  "title" : "language"
}
-->

# language

A language ID that determines the language for route information.

```
language?: string;
```

## Discussion

When you set the language to a language ID such as `fr-CA` or `en-GB`, MapKit JS returns step-by-step directions in the specified language, if available. If you don’t set the language when initializing a [`Directions`](/documentation/MapKitJS/Directions) object, the directions default to the language ID the system provides when initializing the map with [`init(options)`](/documentation/MapKitJS/mapkit/init). If the map doesn’t have a specified language upon initialization, MapKit JS returns directions in the browser’s language setting.

For more information about language IDs, see [Internationalization and Localization Guide](https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html).

---

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)