Platforms to show: All Mac Windows Linux Cross-Platform
TranslationRequestMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | Translation | MBS Swift Plugin | 26.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Create a translation request to translate a string of text.
Initialize the request using ``init(sourceText:clientIdentifier:)``.
Set the `sourceText` to the string of text you want to translate.
Then pass that request in an array to one of the batch translation functions.
Keep track of the correspondence between the responses and requests by setting the clientIdentifier on the sent request, then matching it with the Response/clientIdentifier of the recieved response when the translation completes.
- 2 properties
- property clientIdentifier as String
- property sourceText as String
- method Constructor(sourceText as String, clientIdentifier as String = "")
This class has no sub classes.
Blog Entries
Release notes
- Version 26.0
- Added Translation classes: TranslationSessionMBS, TranslationResponseMBS and TranslationRequestMBS classes for macOS.
Some methods using this class:
- TranslationSessionMBS.translateBatch(Requests() as TranslationRequestMBS, completedOne as TranslateStringCompletedMBS, completed as TranslationsCompletedMBS, Tag as Variant = nil)
- TranslationSessionMBS.translations(Requests() as TranslationRequestMBS) as TranslationResponseMBS()
- TranslationSessionMBS.translations(Requests() as TranslationRequestMBS, completed as TranslationsCompletedMBS, Tag as Variant = nil)
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS Swift Plugin.
TranscriptMBS - TranslationResponseMBS