I found 2 ways to do that:
- From Katalon Studio:
- Select Project > Settings > Desired Capacities > Mobile > Android
- Add 2 properties language and locale with the values vi and VN (for example of Vietnamese)
You can refer here to have the list of languages.
-
Or we can use the RunConfiguration library and add the below code to our script.
import com.kms.katalon.core.configuration.RunConfiguration
RunConfiguration.setMobileDriverPreferencesProperty("language", 'vi')
RunConfiguration.setMobileDriverPreferencesProperty("locale", 'VN')
Mobile.startApplication(appPath, false)
- Remember to put those configs before the app starts (Mobile.startApplication).