Create a translation session for a language pair. Returns an HSTranslationSession, or null if the system is running macOS older than 26.0.
HSTranslationSession
null
BCP-47 code of the source language (e.g. "en").
"en"
BCP-47 code of the target language (e.g. "fr").
"fr"
An HSTranslationSession, or null on unsupported versions of macOS.
Create a translation session for a language pair. Returns an
HSTranslationSession, ornullif the system is running macOS older than 26.0.