We at Wiki Project Med are working to relaunch our translation efforts. The problems of ContentTranslation dropping references; however, still persists.
Here was the source content being translated and here was the target content that resulted. https://ja.wikipedia.org/w/index.php?title=%E8%A1%80%E6%B8%85%E7%97%85&oldid=83393053 Here is the edit restoring all the missing / dropped references. https://ja.wikipedia.org/w/index.php?title=%E8%A1%80%E6%B8%85%E7%97%85&type=revision&diff=83393098&oldid=83393085
I previously believed that the issue occurred when the full definition of the reference occurred within the infobox so we had a bot move the full definitions out of the infobox for all our leads that are ready to translate. Yet the problems persists.
A more precise description, added by @Amire80: I've tried to translate https://en.wikipedia.org/w/index.php?oldid=1022115153 to Japanese. Three footnote appear at the bottom, albeit with some error messages. However, some footnote numbers don't appear in the published translation, for example the "Stat2020" reference in the beginning of the first paragraph. I do see it while I'm translating, but not in the published page.
Reproducible test cases
This example page contains 3 instances of the same reference. When it is translated from English to Japanese (using Google translate for each paragraph) the published result only contains 2 instances of the reference (i.e., one got lost).
The expected result would be for the three instances to be present in the published article.
Below you can see the source, translation and target screenshots. Notice that the reference next to the "kidney failure" link is only missing in the published content (see the red zone highlighted):
|Source example content||Source and target in Content Translation||Published content|
(The published page also shows some reference errors because of the known issue of duplication of references by name: T203772: CX2: Improve support for references that are reused in multiple places)
Another test case to verify the solution against: