Skip to content

Conversation

@thii
Copy link
Contributor

@thii thii commented May 17, 2022

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
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.

@thii thii marked this pull request as ready for review May 17, 2022 07:48
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 simulators' 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.
@thii thii force-pushed the add-support-for-setting-system-language-of-newly-created-simulator branch from d95ee2e to 70ddcfe Compare May 18, 2022 00:16
@thii
Copy link
Contributor Author

thii commented May 19, 2022

@albertdai Can you take a look?

@thii
Copy link
Contributor Author

thii commented Oct 20, 2022

@albertdai Can you take a look? This is a purely additive change, so should be safe to add.

@rasberik
Copy link

@tirodkar @me11kiy Would be nice to have it 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants