Change app language/locale programmatically in jetpack compose during instrumentation/UI test on Android
The app supports 2 locales. During instrumentation or UI test, I want to test with a specific language (such as EN
). Referring 6629458, I made a function for changing the locale in kotlin: