Currently Section translation publishes content at the very end of the article. This is relevant for both the publish step (T252542) and the "Compare the contents before translating" step (T241589), where a placeholder is shown.
Making the initial placement to be more likely to be correct is important since rearranging the section order in the final article is not an easy task on mobile (unlike desktop there is no option to edit the whole contents of the article).
This ticket proposes to make the placement of the translated section smarter. There are two strategies that we can apply (and maybe combine):
- Identify "closing sections" that normally go at the end (such as "External links", "References" or "See also") after the rest of "content sections". In this way, when the user translates a "content section" it would be added after other "content sections" but before these "closing sections".
- Showing a section it in a consistent position with equivalent sections from the source article. The source article may follow already a logical sequence that we may want to keep.
As an example, note how this edit is placed after references and templates that are expected to be at the very end of the article:
Independently of this, we may consider providing better control on where to place the translated section on mobile (T279910). However, improving the initial placement would make such feature to be needed less often.