<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Translation",
  "identifier" : "/documentation/Translation/TranslationSession/Configuration/invalidate()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Translation"
    ],
    "preciseIdentifier" : "s:11Translation0A7SessionC13ConfigurationV10invalidateyyF"
  },
  "title" : "invalidate()"
}
-->

# invalidate()

Invalidate the current translation session and re-run it with new content.

```
mutating func invalidate()
```

## Discussion

Call this method when you want to translate new content using the same source and target languages.
When you do, it causes the <doc://com.apple.documentation/documentation/SwiftUI/View/translationTask(_:action:)> function to call
its `action` closure and translate the content again.

---

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)