views:

513

answers:

1

In particular I'm interested in shortStandaloneWeekdaySymbols. I'm using this code:

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
NSArray *shortWeekdaySymbols = [dateFormatter shortStandaloneWeekdaySymbols];

But if iPhone region format is set to US but language to French/German/any other, NSDateFormatter returns English strings (mon tue ...). But I want to respect the language settings and get weekday names in the current language (standard Clock app does this for example). Is this possible?

The only way I can think of to do this would be to get the current user language (how?) and set locale on the date formatter to this language's region.