isReady
A boolean value that indicates whether the system has installed the source and target languages of the session and is ready to begin translation.
Declaration
var isReady: Bool { get async }Discussion
Use this property to check whether a translation is likely to succeed. In a session that can request downloads, it prompts the person to approve downloads if languages aren’t ready yet. In a session that can’t request downloads, it will throw an error if the person calls any functions when languages aren’t ready.
If languages aren’t installed, attach a translationTask(_:action:) or a translationTask(source:target:action:) function to a SwiftUI View. Then, call either prepareTranslation() or one of the translate functions so the system prompts the person to approve the language downloads.