iOS Simulator (8.1) has always en_US as locale

Originator:mail
Number:rdar://18709274 Date Originated:20-Oct-2014 07:21 PM
Status:Closed Resolved:iOS 8.2
Product:iOS SDK Product Version:iOS 8.1
Classification:Serious Bug Reproducible:Always
 
Summary:
The iOS Simulator doesn't have the right NSLocale Object.

Steps to Reproduce:
1. Open the iOS Simulator
2. Switch Language to "DE"
3. Switch Region to "DE"
4. Start an App
5. Read the Value from [NSLocale currentLocale]

Expected Results:
de_DE

Actual Results:
en_US

Version:
Xcode 6.1 - iOS Simulator 8.1

Comments

I agree this is a bug.

But you can get around it, and launch your app with the correct localization. Just go to
Edit Scheme > Run > Arguments tab > Arguments Passed On Launch
and pass in "-AppleLanguages (de_DE)"

You might want to double check the param in the parens, but Japanese is jp, and its working for me.

By wirth_caesar at Oct. 23, 2014, 8:57 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!