⚓ T420687 lang and dir attributes are not applied to rendered Abstract Wikipedia preview
Page Menu
Phabricator
Create Task
Maniphest
T420687
lang and dir attributes are not applied to rendered Abstract Wikipedia preview
Closed, Resolved
Public
BUG REPORT
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
DSmit-WMF
Authored By
Amire80
Mar 20 2026, 2:58 AM
2026-03-20 02:58:57 (UTC+0)
Tags
WikiLambda
RTL
(Backlog)
I18n
(Untriaged)
Abstract Wikipedia team (26Q3 (Jan–Mar))
(Needs Sign-off)
MW-1.46-notes (1.46.0-wmf.21; 2026-03-24)
Essential-Work
Referenced Files
F73192522: צילום מסך מ־2026-03-19 22-42-23.png
Mar 20 2026, 2:58 AM
2026-03-20 02:58:57 (UTC+0)
Subscribers
Amire80
gengh
Jdforrester-WMF
Description
Steps to replicate the issue
(include links if applicable):
Set your user interface language on Abstract Wikipedia to English.
Go to
The page is initially loaded in English.
Select Hebrew in the language selector.
What happens?
A Hebrew sentence is shown. It's aligned to the left, and the full top is on the right-hand end of the sentence.
What should have happened instead?
When a Hebrew sentence is shown, it must be aligned to the right, and the full stop must be on the left-hand end of the sentence.
The easy way to do this is probably to apply the appropriate
lang
and
dir
attributes to the HTML element with the content in the target language. It probably makes sense to apply those attributes to that element on the initial load of the page, even if they are the same as the same attributes on parent elements (


, etc.)
Details
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
AbstractPreview: apply selected preview language lang/dir to abstract preview body
mediawiki/extensions/WikiLambda
wmf/1.46.0-wmf.21
+23
-0
AbstractPreview: apply selected preview language lang/dir to abstract preview body
mediawiki/extensions/WikiLambda
master
+23
-0
Customize query in gerrit
Related Objects
Mentions
Mentioned In
T420654: Set up an interwiki prefix for Abstract Wikipedia
T420725: Abstract Wikipedia allows creation of existing articles
T420916: Direct browses to Special:CreateAbstract/Q123456 don't work on publishing, attempt to publish to Q0
Mentioned Here
T420654: Set up an interwiki prefix for Abstract Wikipedia
T420725: Abstract Wikipedia allows creation of existing articles
T420916: Direct browses to Special:CreateAbstract/Q123456 don't work on publishing, attempt to publish to Q0
Event Timeline
Amire80
created this task.
Mar 20 2026, 2:58 AM
2026-03-20 02:58:57 (UTC+0)
Restricted Application
added a project:
I18n
View Herald Transcript
Mar 20 2026, 2:58 AM
2026-03-20 02:58:58 (UTC+0)
gengh
renamed this task from
lang and he attributes are not applied to rendered Abstract Wikipedia preview
to
lang and dir attributes are not applied to rendered Abstract Wikipedia preview
Mar 24 2026, 12:36 PM
2026-03-24 12:36:24 (UTC+0)
gengh
claimed this task.
DSmit-WMF
claimed this task.
Mar 24 2026, 1:25 PM
2026-03-24 13:25:45 (UTC+0)
DSmit-WMF
added a subscriber:
gengh
Jdforrester-WMF
changed the task status from
Open
to
In Progress
Mar 24 2026, 2:20 PM
2026-03-24 14:20:49 (UTC+0)
Jdforrester-WMF
triaged this task as
High
priority.
Jdforrester-WMF
edited projects, added
Abstract Wikipedia team (26Q3 (Jan–Mar))
; removed
Abstract Wikipedia team
Jdforrester-WMF
moved this task from
Incoming
to
In Engineering
on the
Abstract Wikipedia team (26Q3 (Jan–Mar))
board.
gerritbot
added a comment.
Mar 24 2026, 2:22 PM
2026-03-24 14:22:59 (UTC+0)
Comment Actions
Change #1259987 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):
[mediawiki/extensions/WikiLambda@master] AbstractPreview: apply selected preview language lang/dir to abstract preview body
gerritbot
added a project:
Patch-For-Review
Mar 24 2026, 2:23 PM
2026-03-24 14:23:02 (UTC+0)
DSmit-WMF
moved this task from
In Engineering
to
In Code review
on the
Abstract Wikipedia team (26Q3 (Jan–Mar))
board.
Mar 24 2026, 2:24 PM
2026-03-24 14:24:12 (UTC+0)
gerritbot
added a comment.
Mar 24 2026, 2:44 PM
2026-03-24 14:44:43 (UTC+0)
Comment Actions
Change #1259987
merged
by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] AbstractPreview: apply selected preview language lang/dir to abstract preview body
gerritbot
added a comment.
Mar 24 2026, 2:53 PM
2026-03-24 14:53:44 (UTC+0)
Comment Actions
Change #1259994 had a related patch set uploaded (by Jforrester; author: Daphne Smit):
[mediawiki/extensions/WikiLambda@wmf/1.46.0-wmf.21] AbstractPreview: apply selected preview language lang/dir to abstract preview body
ReleaseTaggerBot
added a project:
MW-1.46-notes (1.46.0-wmf.22; 2026-03-31)
Mar 24 2026, 3:00 PM
2026-03-24 15:00:30 (UTC+0)
DSmit-WMF
moved this task from
In Code review
to
Ready to deploy
on the
Abstract Wikipedia team (26Q3 (Jan–Mar))
board.
Mar 24 2026, 3:18 PM
2026-03-24 15:18:25 (UTC+0)
gerritbot
added a comment.
Mar 24 2026, 8:19 PM
2026-03-24 20:19:09 (UTC+0)
Comment Actions
Change #1259994
merged
by jenkins-bot:
[mediawiki/extensions/WikiLambda@wmf/1.46.0-wmf.21] AbstractPreview: apply selected preview language lang/dir to abstract preview body
Stashbot
added a comment.
Mar 24 2026, 8:20 PM
2026-03-24 20:20:22 (UTC+0)
Comment Actions
Mentioned in SAL (#wikimedia-operations)
[2026-03-24T20:20:15Z] Started scap sync-world: Backport for [[gerrit:1259967|Set json object before setting Abstract Wiki Id (
T420916
)]], [[gerrit:1259994|AbstractPreview: apply selected preview language lang/dir to abstract preview body (
T420687
)]], [[gerrit:1260092|AbstractTitle: Handle pageinfo responses without normalized titles (
T420725
)]], [[gerrit:1259992|[abstractwiki] Don't list abstract as a langlist entry
Stashbot
mentioned this in
T420916: Direct browses to Special:CreateAbstract/Q123456 don't work on publishing, attempt to publish to Q0
Mar 24 2026, 8:20 PM
2026-03-24 20:20:25 (UTC+0)
Stashbot
mentioned this in
T420725: Abstract Wikipedia allows creation of existing articles
Stashbot
mentioned this in
T420654: Set up an interwiki prefix for Abstract Wikipedia
Mar 24 2026, 8:22 PM
2026-03-24 20:22:34 (UTC+0)
Comment Actions
Mentioned in SAL (#wikimedia-operations)
[2026-03-24T20:22:33Z] jforrester: Backport for [[gerrit:1259967|Set json object before setting Abstract Wiki Id (
T420916
)]], [[gerrit:1259994|AbstractPreview: apply selected preview language lang/dir to abstract preview body (
T420687
)]], [[gerrit:1260092|AbstractTitle: Handle pageinfo responses without normalized titles (
T420725
)]], [[gerrit:1259992|[abstractwiki] Don't list abstract as a langlist entry (
T420654
)]] s
Jdforrester-WMF
subscribed.
Mar 24 2026, 8:26 PM
2026-03-24 20:26:07 (UTC+0)
Comment Actions
Deployed to wmf.21, which abstract.wikipedia.org will move to tomorrow morning.
Stashbot
added a comment.
Mar 24 2026, 8:27 PM
2026-03-24 20:27:27 (UTC+0)
Comment Actions
Mentioned in SAL (#wikimedia-operations)
[2026-03-24T20:27:26Z] Finished scap sync-world: Backport for [[gerrit:1259967|Set json object before setting Abstract Wiki Id (
T420916
)]], [[gerrit:1259994|AbstractPreview: apply selected preview language lang/dir to abstract preview body (
T420687
)]], [[gerrit:1260092|AbstractTitle: Handle pageinfo responses without normalized titles (
T420725
)]], [[gerrit:1259992|[abstractwiki] Don't list abstract as a langlist entry
Maintenance_bot
removed a project:
Patch-For-Review
Mar 24 2026, 8:31 PM
2026-03-24 20:31:14 (UTC+0)
ReleaseTaggerBot
edited projects, added
MW-1.46-notes (1.46.0-wmf.21; 2026-03-24)
; removed
MW-1.46-notes (1.46.0-wmf.22; 2026-03-31)
Mar 24 2026, 9:00 PM
2026-03-24 21:00:40 (UTC+0)
Jdforrester-WMF
moved this task from
Ready to deploy
to
Needs Sign-off
on the
Abstract Wikipedia team (26Q3 (Jan–Mar))
board.
Wed, Mar 25, 1:42 PM
2026-03-25 13:42:22 (UTC+0)
Jdforrester-WMF
closed this task as
Resolved
Wed, Mar 25, 1:49 PM
2026-03-25 13:49:44 (UTC+0)
Comment Actions
OK, this is fixed for the content lang/dir in the DOM, but we don't refresh the title correctly. Will follow that up in a different patch.
DSantamaria
added a project:
Essential-Work
Tue, Apr 7, 1:46 PM
2026-04-07 13:46:35 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits