internalError
TypeScriptstatic get internalError(): TranslationErrorSwift declarationstatic let internalError: TranslationErrorAn error occurred internal to the translation engine.
struct · iOS 18.0+ · SDK 27.1
struct TranslationErrorError codes describing why the framework can't perform a translation.
static get internalError(): TranslationErrorSwift declarationstatic let internalError: TranslationErrorAn error occurred internal to the translation engine.
static get notInstalled(): TranslationErrorSwift declarationstatic let notInstalled: TranslationErrorThe device doesn't have the necessary languages downloaded to perform a translation and the session can't request the person to download them. This error is thrown if <doc://com.apple.documentation/documentation/translation/translationsession/canrequestdownloads> is false and either the languages are supported but the person hasn't approved them or if the person has approved them but the languages haven't finished downloading.
get failureReason(): (string) | nullSwift declarationvar failureReason: String? { get }A localized message describing the reason for the failure.
static get alreadyCancelled(): TranslationErrorSwift declarationstatic let alreadyCancelled: TranslationErrorAn error describing a translation session that you've cancelled before, which prevents the session from producing additional results. A ``TranslationSession`` instance throws this error when you call one of its translate methods after calling its ``TranslationSession/cancel()`` method.
get errorDescription(): (string) | nullSwift declarationvar errorDescription: String? { get }A localized message describing the error.
static get nothingToTranslate(): TranslationErrorSwift declarationstatic let nothingToTranslate: TranslationErrorNo content to translate.
static get unableToIdentifyLanguage(): TranslationErrorSwift declarationstatic let unableToIdentifyLanguage: TranslationErrorThe framework can't identify the source language automatically. The framework throws this error when you call ``TranslationSession/prepareTranslation()`` without specifying the source language, or when using ``LanguageAvailability/status(for:to:)`` and it can't automatically identify the source language of the sample text you pass in. > Note: For best results in automatic language detection, pass in a sample string of at least 20 characters in length.
static get unsupportedSourceLanguage(): TranslationErrorSwift declarationstatic let unsupportedSourceLanguage: TranslationErrorThe framework doesn't support the specified or detected source language.
static get unsupportedTargetLanguage(): TranslationErrorSwift declarationstatic let unsupportedTargetLanguage: TranslationErrorThe framework doesn't support the specified or chosen target language.
static get unsupportedLanguagePairing(): TranslationErrorSwift declarationstatic let unsupportedLanguagePairing: TranslationErrorThe framework doesn't support the specified source and target language pairing. The framework doesn't support translating from and to the same language. For example, you can't translate from English (US) to English (UK) or from French to French.
No declarations were skipped in this snapshot.