I am launching my app in the simulator using xcrun simctl
. I would like to be able to set the language that the simulator launches with (ie. switch to French on one run, to Englash on another). Is there an option to do that? It used to be possible to use -AppleLanguages
option to the Simulator, but that no longer appears to work (since Xcode 5.x).
相关问题
- How to properly change a resource dictionary
- delphi translation tool [closed]
- Does Microsoft SQL Server support localized name s
- Xcode 6 Storyboard crashing when scrolling to part
- Images.xcassets breaking the laws of targets
相关文章
- xslt localization
- What is a satellite assembly?
- Get English exception message instead of local lan
- Google.Play web interface hl parameter for arabic
- Writing to then reading from an offscreen FBO on i
- XCode 4.3.1 iPad simulator
- non standard locale with java.util.Calendar
- Unable to run app in simulator
Just figured this out myself:
or
When you use the -AppleLanguages as a launch argument in the scheme, it expects the parentheses around the language identifier. On the command line, bash wants to interpret them, so you either need to escape them or put the language in quotes.
Just replace en-GB with the language you want to use.
As a bootnote, when you run [NSLocale preferredLanguages] it will report the specified language.