/locales/
folder with the language code as filename. See these two example translation files for English and Dutch:title
, greeting
, settings.title
, settings.intro
, and pair.press_button
. If a translated string with a certain ID is not present in the locale file for the users locale Homey will fall-back to English.README.txt
can also be translated by creating additional README.<languagecode>.txt
files. For exampleREADME.nl.txt
would contain the Dutch translation of the readme.en
translation! This is what Homey will fall-back on when the user language can't be found."unit"
is set to "Β°C"
to let Homey know that this value should be converted.en
: Englishnl
: Dutchde
: Germanfr
: Frenchit
: Italiansv
: Swedishno
: Norwegianes
: Spanishda
: Danishru
: Russianpl
: Polishthis.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
.__
). To get the translated string with variables you should pass an object to this.homey.__()
as the second argument with the values that you want to use for those variables.