HomeyAPI~ManagerI18n

Methods

async setOptionLanguage(optsopt)

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
value string

async getOptionLanguage(optsopt)

Required OAuth scopes:
- homey.system.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters

async setOptionUnits(optsopt)

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
value string ("metric")

async getOptionUnits(optsopt)

Required OAuth scopes:
- homey.system.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters

__(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