Skip to content

Original language only

OriginalLanguageOnlySetting #

OriginalLanguageOnlySetting(value: bool = True)

Bases: RapidataSetting

Display the content in the original language only. Hides the language switch UI from users.

Use this when task content should not be translated: it disables the automatic translation / localization of the content and prevents annotators from switching languages. Search terms: translation, translate, translated, multilingual, localization, localize, i18n, language switch.

Parameters:

Name Type Description Default
value bool

Whether to display the content in the original language only. Defaults to True.

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

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