Add the functionality to fetch and save results to the Uwazi side handler. This time the result message will contain all information necessary, there will not be a need to query API endpoints, like in IX.
The response message will be:
namespace: str - <the name of the tenant>
key: list[str] - [<entitySharedId>, <propertyId>]
text: str
language_from: str
languages_to: list[str]
translations: list of objects as:
text: str
language: str
success: bool
error_message: str
The saving process should:
validate the response message format (ajv)
validate that the message is correct: same validation as in issue #6952 , plus tenant
console log an error on an invalid message, or errors per error_messages in translations, but continue the process (consult infra on log format, if there are questions)
save the translation using the functionality from issue
Add the functionality to fetch and save results to the Uwazi side handler. This time the result message will contain all information necessary, there will not be a need to query API endpoints, like in IX.
The response message will be:
The saving process should: