def _set_default_language_in_first_position(default_language, languages):
    """
    Set the default language in first position.
    It is important for the Polylang plugin that the default language is
    in first position.

    :param default_language: the default language
    :param languages: the list of languages
    """
    if len(languages) > 1:
        languages.remove(default_language)
        languages.insert(0, default_language)
    return languages