<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributedString/LocalizationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation16AttributedStringV19LocalizationOptionsV"
  },
  "title" : "AttributedString.LocalizationOptions"
}
-->

# AttributedString.LocalizationOptions

Configuration options for the localization of text.

```
struct LocalizationOptions
```

## Topics

### Initializers

[`init()`](/documentation/Foundation/AttributedString/LocalizationOptions/init())

### Instance Properties

[`var applyReplacementIndexAttribute: Bool`](/documentation/Foundation/AttributedString/LocalizationOptions/applyReplacementIndexAttribute)

[`var concepts: [InflectionConcept]?`](/documentation/Foundation/AttributedString/LocalizationOptions/concepts)

The inflection concepts for achieving automatic grammar agreement during localization.

[`var inflect: Bool`](/documentation/Foundation/AttributedString/LocalizationOptions/inflect)

Whether attributes for automatic grammar agreement and formatting should
be processed upon loading the string. Default value is `true`.

[`var replacements: [any CVarArg]?`](/documentation/Foundation/AttributedString/LocalizationOptions/replacements)

### Type Methods

[`static func localizedPhraseConcept(String) -> AttributedString.LocalizationOptions`](/documentation/Foundation/AttributedString/LocalizationOptions/localizedPhraseConcept(_:))

[`static func termsOfAddressConcept([TermOfAddress]) -> AttributedString.LocalizationOptions`](/documentation/Foundation/AttributedString/LocalizationOptions/termsOfAddressConcept(_:))

---

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)