<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/TranslationAttributes/skipsTranslation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO11TranslationE0D10AttributesV05skipsD0AF04SkipdB0Ovp"
  },
  "title" : "skipsTranslation"
}
-->

# skipsTranslation

An attribute that marks portions of an attributed string to be excluded from translation.

```
let skipsTranslation: AttributeScopes.TranslationAttributes.SkipTranslationAttribute
```

## Discussion

Use this to exclude specific text ranges within an [`AttributedString`](/documentation/Foundation/AttributedString)
from translation, such as proper nouns, brand names, technical terms, or other content that
should remain unchanged across different languages.

When translating formatted text, you can mark specific ranges to skip translation:

```swift
var text = AttributedString("Welcome to Apple Park")
let range = text.range(of: "Apple Park")!
text[range].skipsTranslation = true
```

When translated the string, “Welcome to” changes to the target
language, but “Apple Park” remains unchanged.

---

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)