I wanted to create an array in Swift that contained the names of every day of the week, e.g. Sunday, Monday, Tuesday, etc. Obviously, I can do something like the following:
let daysOfWeek = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", Saturday"]
But the problem was that I also wanted those names to be localized into other languages without having to manually create one for each. I knew that iOS Objective C/Swift supported automatically translating date names using NSDateFormatter, but I wondered if there was a way to achieve what I want without passing and converting actual, specific dates....