function parseWeekday(input, locale) {
    if (typeof input !== 'string') {
        return input;
    }