# Can't set language "en"

**URL:** <https://discuss.appium.io/t/cant-set-language-en/29409>\
**Category:** Support\
**Created:** [January 23, 2020, 10:03am UTC](https://discuss.appium.io/t/cant-set-language-en/29409 "2020-01-23T10:03:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pya](https://discuss.appium.io/user_avatar/discuss.appium.io/pya/32/6993_2.png) [@pya](https://discuss.appium.io/u/pya)\
**Post date:** [January 23, 2020, 10:04am UTC](https://discuss.appium.io/t/cant-set-language-en/29409/1 "2020-01-23T10:04:00Z")

</div>

Hello,

I’ve got some trouble when trying to change language/locale through Robot Framework including Appium Librabry

Appium server : Appium v1.15.1 (desktop)  
robotframework-appiumlibrary 1.5.0.4

My script is launched this way : robot --variable LANGUAGE:en --variable LOCALE:GB ./myscript.robot

=\> returned error “_Original error: Failed to set language: Languages and country: GB_”

If i change language/locale it works:  
robot --variable LANGUAGE:es --variable LOCALE:ES ./myscript.robot  
robot --variable LANGUAGE:fr --variable LOCALE:FR ./myscript.robot

It seems that the use of language “en” is the root cause

here’s Appium logs where “en” is replaced by “Languages” :  
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {  
[debug] e[35m[BaseDriver]e[39m “alwaysMatch”: {  
[debug] e[35m[BaseDriver]e[39m “platformName”: “Android”,  
[debug] e[35m[BaseDriver]e[39m “appium:platformVersion”: “9”,  
[debug] e[35m[BaseDriver]e[39m “appium:automationName”: “UiAutomator2”,  
[debug] e[35m[BaseDriver]e[39m “appium:language”: “ **Languages** ”,  
[debug] e[35m[BaseDriver]e[39m “appium:locale”: “GB”  
[debug] e[35m[BaseDriver]e[39m },

thanks for help

---

<div class="post-metadata">

**Author:** ![pya](https://discuss.appium.io/user_avatar/discuss.appium.io/pya/32/6993_2.png) [@pya](https://discuss.appium.io/u/pya)\
**Post date:** [January 24, 2020, 3:42pm UTC](https://discuss.appium.io/t/cant-set-language-en/29409/2 "2020-01-24T15:42:47Z")

</div>

it works if i set  
LANGUAGE = ‘gb’  
LOCALE = ‘UK’

I don’t understand where do this codes come from? they dont’t exist in international standards.

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [January 24, 2020, 9:22pm UTC](https://discuss.appium.io/t/cant-set-language-en/29409/3 "2020-01-24T21:22:19Z")

</div>

Check [https://developer.android.com/reference/java/util/Locale.html](https://developer.android.com/reference/java/util/Locale.html)
