# Default appium locale and language capability values

**URL:** <https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076>\
**Category:** Issues/Bugs\
**Created:** [November 13, 2015, 6:29pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076 "2015-11-13T18:29:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuthuSelvan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MuthuSelvan](https://discuss.appium.io/u/MuthuSelvan)\
**Post date:** [November 13, 2015, 6:29pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/1 "2015-11-13T18:29:48Z")

</div>

Hello All ,

Could you please share What is the default appium’s locale and language in case if i not sending the following caps

capabilities.setCapability(“locale”, “en\_US”);  
capabilities.setCapability(“language”, “en”);

if it appium will set default as english could you please point me the code where its been set default as English

Why i am asking this question ? because of the below issue

> [@Command failed: error: more than one device and emulator , is it BUG?](https://discuss.appium.io/t/command-failed-error-more-than-one-device-and-emulator-is-it-bug/7027):
>
> Hi , We are using appium-java client ( version 3.2.0 ) for running android script in appium mobile grid (1.4.13 ) . we are running multiple instance of android node ( like : [Running multiple instances of Appium server for Android and IOS device](https://discuss.appium.io/t/running-multiple-instances-of-appium-server-for-android-and-ios-device/4107) ) and its working fine . The issue when i am sending the following capabilities and running in grid with running multiple instance of android node then getting the error : error: Command failed: error: more than one device and emulator CAPS : capabi…

Thanks ,  
Muthu Selvan SR

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 13, 2015, 7:01pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/2 "2015-11-13T19:01:31Z")

</div>

Could the problem be that you are sending ‘Simulator only’ Capabilities to a real device?

```
language(Sim/Emu-only) Language to set for the simulator / emulatore.g. fr
locale(Sim/Emu-only) Locale to set for the simulator / emulatore.g. fr_CA

```

> <https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md>

---

<div class="post-metadata">

**Author:** ![MuthuSelvan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MuthuSelvan](https://discuss.appium.io/u/MuthuSelvan)\
**Post date:** [November 13, 2015, 7:21pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/3 "2015-11-13T19:21:47Z")

</div>

Thanks for you replay , currently this issue coming only emulator , let me know in case if you need further question please ?

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 13, 2015, 7:32pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/4 "2015-11-13T19:32:03Z")

</div>

What are the names of the Emulators that you are trying to connect to? Are the names unique?

---

<div class="post-metadata">

**Author:** ![MuthuSelvan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MuthuSelvan](https://discuss.appium.io/u/MuthuSelvan)\
**Post date:** [November 13, 2015, 7:37pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/5 "2015-11-13T19:37:15Z")

</div>

No Simulator name is different like , emulator-1 , emulator-2

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 13, 2015, 8:38pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/6 "2015-11-13T20:38:36Z")

</div>

Can you post the Appium Server log? I’d just like to see what’s happening there.

---

<div class="post-metadata">

**Author:** ![MuthuSelvan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MuthuSelvan](https://discuss.appium.io/u/MuthuSelvan)\
**Post date:** [November 13, 2015, 9:45pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/7 "2015-11-13T21:45:16Z")

</div>

Below is the server log :

As i mentioned in my issue , This issue is coming when running two appium instance with two emulator running and passing the below caps :

capabilities.setCapability(“locale”, “en\_US”);  
capabilities.setCapability(“language”, “en”);

**SERVER LOGS :**

2015-11-13 07:00:17:466 - info: [debug] executing cmd: $HOME/android-sdk-linux/platform-tools/adb shell “getprop persist.sys.language”  
2015-11-13 07:00:17:476 - error: Error getting device property persist.sys.language: Error: Command failed: error: more than one device/emulator

2015-11-13 07:00:17:477 - info: [debug] Sent shutdown command, waiting for UiAutomator to stop…  
2015-11-13 07:00:24:480 - warn: UiAutomator did not shut down fast enough, calling it gone  
2015-11-13 07:00:24:481 - info: [debug] Cleaning up android objects  
2015-11-13 07:00:24:481 - info: [debug] Cleaning up appium session  
2015-11-13 07:00:24:482 - error: Failed to start an Appium session, err was: Error: Command failed: error: more than one device/emulator

2015-11-13 07:00:24:485 - info: [debug] Error: Command failed: error: more than one device/emulator

```
at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)

```

2015-11-13 07:00:24:485 - info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: error: more than one device/emulator\n)”,“killed”:false,“code”:255,“signal”:null,“origValue”

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 13, 2015, 11:16pm UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/8 "2015-11-13T23:16:13Z")

</div>

> [@MuthuSelvan](#):
>
> adb shell “getprop persist.sys.language”

If you give the above command from the command line do you get the same error? Keep in mind adb may not be in your path so you may need to type the path out.

---

<div class="post-metadata">

**Author:** ![MuthuSelvan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MuthuSelvan](https://discuss.appium.io/u/MuthuSelvan)\
**Post date:** [November 14, 2015, 12:21am UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/9 "2015-11-14T00:21:34Z")

</div>

> [@wreed](#):
>
> adb shell “getprop persist.sys.language”

i check that , adb is path and also adb shell “getprop persist.sys.language” this is returning “en” when one instance is running .

but my clarification is "Why i am getting “Error: Command failed: error: more than one device/emulator” when running two appium instance with two emulator running and passing the below caps :

capabilities.setCapability(“locale”, “en\_US”);  
capabilities.setCapability(“language”, “en”);  
Appium will use default as english if we are not setting any local via capabilities , could you please confirm ?

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [November 14, 2015, 7:09am UTC](https://discuss.appium.io/t/default-appium-locale-and-language-capability-values/7076/10 "2015-11-14T07:09:29Z")

</div>

> [@MuthuSelvan](#):
>
> but my clarification is "Why i am getting “Error: Command failed: error: more than one device/emulator” when running two appium instance with two emulator running and passing the below caps :

I’m trying to figure out if this is a limitation of adb. But if you won’t test it in your setup then how can we know? I guess you can just keep asking the same question over and over with no resolution.
