---
title: SupportedLanguage
framework: docc
role: symbol
role_heading: Directive
path: docc/supportedlanguage
---

# SupportedLanguage

A directive that controls what programming languages an article is available in.

## Declaration

```swift
@SupportedLanguage(_ language: SourceLanguage)
```

## Parameters

- `language`: A source language that this symbol is available in. (required) For supported values, see doc://org.swift.docc/documentation/docc/SupportedLanguage.

## Overview

Overview By default, an article is available in the languages the module that’s being documented is available in. Use this directive to override this behavior in a Metadata directive: @Metadata {     @SupportedLanguage(swift)     @SupportedLanguage(objc) } This directive supports any language identifier, but only the following are currently supported by Swift-DocC Render:  |   |   |

## See Also

### Customizing the Languages of an Article

- [AlternateRepresentation](docc/alternaterepresentation.md)
