import locale


def get_day_name(day):
    """
    Get the short day name in the currently activated locale.
    :param day:
    :return:
    day 0 = Sunday
    """
    # Locale keys are 1=Sun, 2=Mon, ...
    locale_key = "ABDAY_%d" % (1 + day)
    option = getattr(locale, locale_key)
    day_name = locale.nl_langinfo(option)
    return day_name