Platforms to show: All Mac Windows Linux Cross-Platform
TranslationRequestMBS class New in 26.0
| 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.
Release notes
- Version 25.6
- Added Translation classes: TranslationSessionMBS, TranslationResponseMBS and TranslationRequestMBS.
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 related classes:
The items on this page are in the following plugins: MBS Swift Plugin.
TranscriptMBS - TranslationResponseMBS