LokiCheckout_Rtl

Other
PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
PHPStan 5
Magento PHPCS 8
Latest Release 1.0.0

Magento version PHP version License Latest Version

This module adds RTL support to Magento 2. It adds in a dir="rtl" attribute to the <html> tag.

Thanks to @rbouma for setting this up.

Installation

Install this package via composer:

composer require yireo/magento2-rtl

Next, enable this module:

bin/magento module:enable Yireo_Rtl

Usage

There is no usage of this module. The RTL-support that this module could be picked up by Tailwind 3+ by adding in Tailwind CSS classes like rtl:mr-0 rtl:ml-4 (so, by adding a rtl: prefix). Note that with Loki, you can extend the css_classes of any HTML element in any PHTML template via the XML layout.

Testing

To test this out, we have gone through the following steps:

  • composer require community-engineering/language-ar_sa
  • Add in a new Store View "Arab" with locale set to ar_SA

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-checkout/LokiCheckout_Rtl.git

Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Magento_Store
Composer details
Magento module name
LokiCheckout_Rtl
Composer name
loki-checkout/magento2-rtl
Composer version
No release yet
Default branch
main
Requirements
magento/framework: ^103.0
magento/module-store: ^101.1
php: >=8.2 <8.6
Releases
1.0.0 27 September 2026
Changelog

[1.0.0] - 18 September 2026

  • Initial version

Last modified: September 18, 2026