LokiCheckout_Rtl

This module is available free of charge as part of the Loki Checkout Open Source plan. Please note that support for this module is not to be taken for granted though. If you want our dedicated help, opt for a paid plan instead.
Other
module.plan-free
Professional
Standard
Trial
PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
PHPStan 5
Magento PHPCS 8
License OSL-3.0
Latest Release 1.0.0

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

Magento 2 DI compilation success
Magento 2 Static Tests success
Magento 2 Integration Tests success
Magento 2 Unit Tests success
Playwright test success

Support

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

https://github.com/LokiCheckout/LokiCheckout_Rtl

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 11 November 2026
Changelog

[1.0.0] - 18 September 2026

  • Initial version

Last modified: September 18, 2026