# Can i translate basics Keyword?

**URL:** https://forum.robotframework.org/t/can-i-translate-basics-keyword/1243
**Category:** Robot Framework
**Created:** [25 January 2021 15:49 UTC](https://forum.robotframework.org/t/can-i-translate-basics-keyword/1243 "2021-01-25T15:49:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aurélien](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Aurélien](https://forum.robotframework.org/u/Aur%C3%A9lien)
#### Post date: [25 January 2021 15:49 UTC](https://forum.robotframework.org/t/can-i-translate-basics-keyword/1243/1 "2021-01-25T15:49:00Z")

</div>

Hello,  
I am beginner with robotframework.  
My client would like translate the keyword in french … even for the basic KW such as “Get From Dictionnay” from Collections libraries.

My question is : **Is there a global library that would translate all basics KW ?**  
For example : “Get From Dictionnay” → “Obtenir du dictionnaire”, " Should Not Be Empty" → “Ne Doit Pas Etre Vide”, etc …

Thanks you.

---

<div class="post-metadata">

### Author: ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)
#### Post date: [10 February 2021 11:06 UTC](https://forum.robotframework.org/t/can-i-translate-basics-keyword/1243/2 "2021-02-10T11:06:07Z")

</div>

I’m not aware of any but it wouldn’t be hard for you to create one.

I would suggest you translate one library at a time (this will make maintenance easier),

so starting with builtin you would create keyword files like these:

BuiltInFR.robot:

```python
***Keywords***
Méthode D'appel
    [Arguments] @{varargs}
    Call Method @{varargs}

Ne Doit Pas Etre Vide
    [Arguments] @{varargs}
    Should Not Be Empty @{varargs}

```

CollectionsFR.robot:

```python
***Settings***
Library Collections

***Keywords***
Obtenir du dictionnaire
    [Arguments] @{varargs}
    Get From Dictionnay @{varargs}

```

Then in your test case robot file, you just include those keyword files

exemple\_français.robot

```python
***Settings***
Resource BuiltInFR.robot
Resource CollectionsFR.robot

***Variables***
${MESSAGE} Bonjour le monde!

***Test Cases***
Mon Test
    Ne Doit Pas Etre Vide ${MESSAGE}

```

Obviously this is not perfect as not everything is in French, but it would get you a long way towards that goal, sorry my French is limited to google translate so hopefully I haven’t made any major mistakes and you can get the idea.

If you think that other French speakers would like this you could start a github or similar project and then they could help you build up a more extensive library of translated keyword files.

Hope this helps,

Dave.

---

<div class="post-metadata">

### Author: ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)
#### Post date: [10 February 2021 11:10 UTC](https://forum.robotframework.org/t/can-i-translate-basics-keyword/1243/3 "2021-02-10T11:10:14Z")

</div>

I forgot to mention that you could also create a general import file something like:

mots-clés\_français.robot

```python
***Settings***
Resource BuiltInFR.robot
Resource CollectionsFR.robot

```

and then exemple\_français.robot becomes

```python
***Settings***
Resource mots-clés_français.robot

***Variables***
${MESSAGE} Bonjour le monde!

***Test Cases***
Mon Test
    Ne Doit Pas Etre Vide ${MESSAGE}

```

which might be a better solution if you are translating a lot of libraries.

Dave.
