/locales/folder with the language code as filename. See these two example translation files for English and Dutch:
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.
"unit"is set to
"°C"to let Homey know that this value should be converted.
this.homey.__()with the identifier of the translated string to get the translation. In the following example we define a translation with the ID
titleand use the translation in
__). 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.