TranslationSettings
class TranslationSettings
Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.
Types
Properties
Link copied to clipboard
You can optionally 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.