def get_translation_data(struct, key):
    """Returns translation data set by set_translation_data().

    Args:
        struct: type. A Struct class.
        key: any object.

    Raises:
        KeyError: Translation data for the key is not defined.
    """
    return struct._translation_data[key]