def activate_language(instances, language):
    """
    Activates the given language for the given instances.
    """
    language = (
        language if language in get_supported_languages() else get_fallback_language()
    )
    for instance in instances:
        instance.activate_language(language)