You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FIX: Revert translating raw for translator providers as they strip newlines (#250)
In 6c197c5, we changed to translate raw instead of cooked. This was largely due to DiscourseAI.
However some tests have shown that the original decision of translating cooked is likely due to translation providers like Google or Azure (and the rest) stripping newlines when translating. However these translator providers keep html as-is, so translating cooked is reasonable.
This commit reverts the other providers to use cooked, but keeps DiscourseAI as the only provider using raw.
The following is a trivial example, but in some more complex cases, the absence of certain characters (besides newline) removed by the provider when dealing with raw is a bit more jarring.
0 commit comments