Skip to content

Translate text assets

TranslateTextAssetsSetting #

TranslateTextAssetsSetting(value: bool = True)

Bases: RapidataSetting

Translates text assets, both options and context (such as the two text options of a compare task), into the annotator's language. Off unless this setting is added: text assets are shown exactly as provided.

The source text is always assumed to be English. Has no effect when OriginalLanguageOnly is also set. Search terms: translation, translate, translated, multilingual, localization, text asset, compare text.

Supported task types: all.

Parameters:

Name Type Description Default
value bool

Whether to translate text assets into the annotator's language. Defaults to True.

True
Source code in src/rapidata/rapidata_client/settings/translate_text_assets.py
def __init__(self, value: bool = True):
    if not isinstance(value, bool):
        raise ValueError("The value must be a boolean.")

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