Open thenav56 opened 2 weeks ago
It seems to be to have a 50.000 characters limit at translations (on the translation API side). With some HTML tables and style settings (copied-pasted from an office application) it's easy to overrun this. We should solve these cases also somehow (if possible, not manually).
Issue
If there is 500 error response from the translation server side, go-api skip the translation of the whole object instead of just that field/request. We should properly handle this be skipping the trouble field/request.
Let's also track text length with the logs using extra. To check if these errors are related to text length limitations
Related sentry error: https://sentry.northeurope.cloudapp.azure.com/organizations/ifrc-go/issues/2066/?project=2&referrer=issue-stream&statsPeriod=30d&stream_index=5