Translate a given message to an appropriate format to message processing
This method should return a object
instance with two keys: content
and metadata
.
The content
should contain the translated message and, metadata
a
object with translation metadata or an empty json
object.
StringMessageTranslator
Message to be translated
Translate a given message to an appropriate format to message processing
This method should return a object
instance with two keys: content
and metadata
.
The content
should contain the translated message and, metadata
a
object with translation metadata or an empty json
object.
AbstractMessageTranslator
Message to be translated
Rest
...args: anyAdditional arguments to be used by the translator
StringMessageTranslator class
Description
Translates a string message to an object
Example
See
AbstractMessageTranslator