-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for setting system language of newly created simulator
This adds a new `--simulator_language` argument that accepts a two-letter language code, which will be used to set the simulator's system language at startup time. Simulator language can be specified by passing `["--simulator_language", "<language-code>"]` to `ios_unit_test`/`ios_ui_test`'s [`args`](https://bazel.build/reference/be/common-definitions#common-attributes-tests) attribute. Note that because this needs to kill all booted simulator's SpringBoard to reload the new language setting, avoid setting this if you run tests on multiple simulators simultanously. Based on https://gist.github.com/koke/e3106e4531e40d2ba423b76ad789caff.
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters