<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)