translate method
Translates this message using engine.
Implementation
AnnotationMessage translate(DogEngine engine) {
var translation = engine.findAnnotationTranslation(id);
translation ??= message;
return AnnotationMessage(id: id, message: translation, variables: variables, target: target);
}