Skip to content

Translation behaviour

TranslationBehaviour #

TranslationBehaviour(value: TranslationBehaviourOptions)

Bases: RapidataSetting

Defines what's the behaviour of the translation in the UI. Will not translate text datapoints or sentences.

Parameters:

Name Type Description Default
value TranslationBehaviourOptions

The translation behaviour.

required
Source code in src/rapidata/rapidata_client/settings/translation_behaviour.py
def __init__(self, value: TranslationBehaviourOptions):
    if not isinstance(value, TranslationBehaviourOptions):
        raise ValueError("The value must be a TranslationBehaviourOptions.")

    super().__init__(key="translation_behaviour", value=value)