Translation has proven to be a successful way to start a new article for multilingual editors. When multilingual editors express the intent to create a new article it may be useful to propose making a translation as an option. For example, a user starting the Paneer article in the Yoruba Wikipedia on mobile could be provided the option to translate it from another language they know instead of creating it from scratch. Such invite to translate is already available on desktop (T216500), but it is missing on mobile.
This ticket proposes to surface a similar alternative to translate on mobile. For the mobile case we want to be extra careful not to add distractions, given the limited screen space available. So the proposed approach tries to be minimal and get out of the way if the intent from the user prefers to start from scratch.
The al idea is to include an invite at the bottom of the viewport. This will be initially visible when the user reaches the editor but covered by the keyboard if the user decides to focus on the text area to type and create the article from scratch (note that the input focus does not go automatically to the text area).
|Invite at the bottom of the viewport with an alternative to translate||When the text area is focused the invite will be hidden by the keyboard|
When to show the invite
We'll show the invites with following conditions:
- On wikis where Section Translation is enabled.
- When the system is confident that the suggested source article (T227571) and language are relevant for the user.
- While there is no content on the editing surface. Once the user starts typing, the invite won't be visible even if the user hides the keyboard.
- The invite will be shown on both visual and wikitext modes.
The invite supports the following actions:
- Tapping on the main body of the invite will open Section Translation with the article and languages pre-selected. The target language will be the one from the current wiki, and the article and source languages will be based on the API suggestion. Users will be able to change it on the confirmation step.
- The close ("X") icon will hide the invite.
- The cog icon will lead to the settings system where users can opt-out to this kind of invite (to be supported when T290317 is ready. Meanwhile the cog can be skipped)
Dimensions and styling are detailed below: