« Back to Product

Documentation

translate

Require: IP-Symcon >= 7.1

 string translate (string Original) 

Parameters

Original

The original English text to be translated

Returns

The translated text

Description

Translates the text original based on the localization of the module and the language of the user. If no suitable translation exists, the original text is returned.

Example

// Output the translated text to the console
console.log(translate('Hallo Welt'));
Any questions?