TranslationSettings
class TranslationSettings
Settings to configure your translation output. You can configure the following options:
Brevity: reduces the length of the translation output for most translations. Available for
TranslateText
only.Formality: sets the formality level of the translation output.
Profanity: masks profane words and phrases in the translation output.
Types
Properties
Link copied to clipboard
You can specify the desired level of formality for translations to supported target languages. The formality setting controls the level of formal language usage (also known as register) in the translation output. You can set the value to informal or formal. If you don't specify a value for formality, or if the target language doesn't support formality, the translation will ignore the formality setting.