---
title: "typesettingLanguage(_:isEnabled:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/typesettinglanguage(_:isenabled:)"
---

# typesettingLanguage(_:isEnabled:)

Specifies the language for typesetting.

## Declaration

```swift
nonisolated func typesettingLanguage(_ language: Locale.Language, isEnabled: Bool = true) -> some View

```

## Parameters

- `language`: The explicit language to use for typesetting.
- `isEnabled`: A Boolean value that indicates whether text language is added

## Return Value

Return Value A view with the typesetting language set to the value you supply.

## Discussion

Discussion In some cases Text may contain text of a particular language which doesn’t match the device UI language. In that case it’s useful to specify a language so line height, line breaking and spacing will respect the script used for that language. For example: Text(verbatim: "แอปเปิล")     .typesettingLanguage(.init(languageCode: .thai)) Note: this language does not affect text localization.

## See Also

### Localizing text

- [Preparing views for localization](swiftui/preparing-views-for-localization.md)
- [LocalizedStringKey](swiftui/localizedstringkey.md)
- [locale](swiftui/environmentvalues/locale.md)
- [TypesettingLanguage](swiftui/typesettinglanguage.md)
