Skip to content

Language Functions


language\translate( )

language\translate()
language\translate(LABEL, [CATEGORY, SCOPE]): STRING

Translates a label to the language set as default.

Example:

language\translate() Example
language\translate('passwordWillBeSent', 'messages', 'User')


language\translateOption( )

language\translateOption()
language\translateOption(OPTION, FIELD, [SCOPE])

Translates an option of a specific field to the language set as default. The field can be of the following types: Enum, Multi-enum, Checklist, Array, Varchar.

Example:

language\translateOption() Example
language\translateOption('Customer', 'type', 'Account')


See Also