def _get_language(uid, query):
    """
    Returns ui_locales of a language

    :param uid: of language
    :param query: of all languages
    :return: string
    """
    return query.get(uid).ui_locales