One Logo Pool Ball
Translation · IOS API REFERENCE

AttributeScopes.TranslationAttributes

struct · iOS 26.4+ · SDK 27.1

struct TranslationAttributes

A scope that defines translation-specific properties on attributed strings. Use this scope to access translation attributes when working with ``AttributedString`` instances.

Members (1)

get · iOS 26.4+

skipsTranslation

TypeScript
get skipsTranslation(): AttributeScopes_TranslationAttributes_SkipTranslationAttribute
Swift declaration
let skipsTranslation: AttributeScopes.TranslationAttributes.SkipTranslationAttribute

An attribute that marks portions of an attributed string to be excluded from translation. Use this to exclude specific text ranges within an ``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.

Skipped declarations

No declarations were skipped in this snapshot.

All Translation types →