TranslatorOptions

class TranslatorOptions : NSObject

Options for Translator.

  • The source language of the input.

    Declaration

    Swift

    var sourceLanguage: TranslateLanguage { get }
  • The target language to translate the input into.

    Declaration

    Swift

    var targetLanguage: TranslateLanguage { get }
  • Creates a new instance of translator options with the given source and target languages.

    Declaration

    Swift

    init(sourceLanguage: TranslateLanguage, targetLanguage: TranslateLanguage)

    Parameters

    sourceLanguage

    The source language for the translator.

    targetLanguage

    The target language for the translator.

    Return Value

    A new instance of TranslatorOptions with the given source and target language.

  • UNAVAILABLE