The page Special:PageMigration provided by MediaWiki's Translate extension lacks support for RTL (Right-to-Left) direction of text:
This task is to add
dir="rtl"
into
<textarea class="mw-tpm-sp-unit__target five columns">
in the resulting HTML code.
(This should be based on language properties, but one problem exists: currently is no common way for determine this property by the literal language code.)
Possible way for resolving (by @Nikerabbit ):
- On PHP side there is Language::getDir.
- JavaScript can call prop=info or use ULS: $.uls.data.getDir.
See also T177306 (similar problem in the 'Type 2')