# Internationalization / Locales

**URL:** https://community.homey.app/t/internationalization-locales/73517
**Category:** Developers
**Tags:** i18n, languages
**Created:** [December 12, 2022, 10:33pm UTC](https://community.homey.app/t/internationalization-locales/73517 "2022-12-12T22:33:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)
#### Post date: [December 12, 2022, 10:33pm UTC](https://community.homey.app/t/internationalization-locales/73517/1 "2022-12-12T22:33:36Z")

</div>

hey,

> In your App, Drivers or Devices you can call `this.homey.__()` with the identifier of the translated string to get the translation. In the following example we define a translation with the ID `title` and use the translation in `app.js`

Does anyone know how to use this in the (for instance) .homeycompose/flow and/or .homeycompose/capabilities JSON files?

The SDK documentation isn’t very clear about that, and I can’t imagine they didn’t implement it for those files also. But I can’t find anything on it…

Thanks in advance!

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [December 13, 2022, 5:30am UTC](https://community.homey.app/t/internationalization-locales/73517/2 "2022-12-13T05:30:45Z")

</div>

In JSON you have to use translation objects like:

“title”: {  
“en”: “Duration”,  
“de”: “Dauer”,  
“nl”: “Duur”  
},

> **[Capabilities](https://apps.developer.homey.app/the-basics/devices/capabilities#custom-capabilities)**
>
> A capability is a programmatic representation of a device's state.

> **[Internationalization](https://apps.developer.homey.app/the-basics/app/internationalization#the-translation-object)**
>
> Homey Apps support internationalization so that users can use your app in their native language.

---

<div class="post-metadata">

### Author: ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)
#### Post date: [December 13, 2022, 7:30am UTC](https://community.homey.app/t/internationalization-locales/73517/3 "2022-12-13T07:30:32Z")

</div>

Hi,

Yeah, that’s how I do it now, but I’d hoped there was a better/smarter solution for those kind of files too. Thank though.
