Something like https://github.com/shadiabuhilal/rtl-detect may be sufficient for the backend.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Lea_WMDE | T205260 Change styling of label, description and aliases of interface language | |||
Resolved | Lea_WMDE | T207150 Move label, description and aliases of interface language to their new positions | |||
Resolved | None | T209288 Server: Look up language directionality based on code |
Event Timeline
Comment Actions
I did not find any existing API to do this. I looked through https://www.wikidata.org/w/api.php and https://www.wikidata.org/w/api.php?action=help&modules=query.
In the frontend, ULS can provide the language directionality, $.uls.data.getDir( languageCode ) see e.g. https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/lib/resources/wikibase.Site.js#L115.
Something like https://github.com/shadiabuhilal/rtl-detect may be sufficient for the backend.