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.

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)