Set localization options to test localized versions of your app using Appium. Configure timezone, language & locale for your Appium tests on BrowserStack App Automate.
Language
Set the language capability with an appropriate language code to test localized strings in your app.
Set the locale capability with an appropriate country code to display or format data such as dates, time, decimal separators, and calendar according to the specified country’s regional conventions.
Capability
Description
Values
locale
Set locale for iOS and Android.
Android: ‘CA’ (country name abbreviation) for french (Canada) iOS: ‘fr_CA’ (language code and country name abbreviation) for french (Canada)
BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.
Use the following code snippet to set the language:
Set the locale capability with an appropriate country code to display or format data such as dates, time, decimal separators, and calendar according to the specified country’s regional conventions.
Capability
Description
Values
locale
Set locale for iOS and Android.
Android: ‘CA’ (country name abbreviation) for french (Canada) iOS: ‘fr_CA’ (language code and country name abbreviation) for french (Canada)
language and locale change settings at a device level on Android and an app level on iOS
To ensure application under test uses localized strings and displays dates, times, and calendar in an appropriate format, pass both language and locale in desired capabilities
Language and locale features are only available with a BrowserStack Paid plan. You can check paid plans here.
Did this page help you?
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked