Overriding preferred strings localization on the fly for testing

前端 未结 3 929
遥遥无期
遥遥无期 2021-02-06 16:21

Using the Settings app in the iPhone simulator to switch languages is a PITA way of testing localization tweaks. I\'m trying to figure out a way to switch localizations (en/fr/e

3条回答
  •  面向向阳花
    2021-02-06 16:38

    Set the AppleLanguages default to an array consisting of the preferred languages, most preferential first. For example if you only care about English, set it to '("en");'

提交回复
热议问题