HomeyAPI~ManagerI18n

Methods

async setOptionLanguage(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
value string
Returns:
Promise.<void> - Successful response

async getOptionLanguage(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

async setOptionUnits(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
value string ("metric")
Returns:
Promise.<void> - Successful response

async getOptionUnits(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

__(input) → {string}

Translates an i18n-object (e.g. `{ en: 'My String', nl: 'Mijn tekst' }` to a string Uses the default language when getConfig has not been called prior to this method.
Parameters:
Name Type Description
input Object
Returns:
string

Classes

Error