Matomo is translated into Arabic, Persian, Hebrew, Urdu and Dhivehi, but its interface is still laid out from left to right. Right To Left mirrors the whole Matomo interface for every user whose language is written from right to left, and leaves it untouched for everyone else.

Features

  • Per user, automatic: each user gets the direction of the language they picked in their personal settings. On the same instance, an Arabic user works right to left while a French user keeps the usual layout. There are no settings.
  • Every RTL language: Arabic, Persian, Hebrew, Urdu and Dhivehi, as shipped by Matomo, plus Pashto, Sindhi, Kurdish Sorani, Uyghur, Yiddish and Kashmiri when a translation is added.
  • Before and after login: the sign-in page follows the browser language, embedded widgets and shared reports follow their language URL parameter.
  • Whole interface: menus, dashboard, reports, data tables, forms, modals, Tag Manager and the screens of third party plugins and themes are mirrored, as the plugin mirrors the stylesheet Matomo compiles from every activated plugin.
  • Kept left to right where it should be: code, tracking snippets, URLs, e-mail addresses, charts and maps keep their reading direction. Arrows and chevrons point the reading way.
  • No flash, no JavaScript: the page is served right to left by the server, it never paints left to right first.
  • Ready for native support: when a Matomo release lays out right-to-left languages itself, the plugin steps aside on its own.
  • Purely visual: no change to tracking, data or reports.

Requirements

  • Matomo 6 (>=6.0.0-b1,<7.0.0-b1), PHP 8.1 or higher.
  • On Matomo 5, install Right To Left 5.x instead.

Installation / Configuration

  1. Go to Administration > Platform > Marketplace and search for "Right To Left".
  2. Click Install, then Activate.
  3. Each user picks their language in Personal > Settings. Users with a right-to-left language get the mirrored interface on their next page load.

There is nothing to configure. To go back to the left-to-right layout, deactivate the plugin.

Need help with Matomo?

Openmost is an official Matomo Implementation Partner. We set up, audit and maintain Matomo for organisations working in Arabic, Persian, Hebrew and every other language. Talk to us.


  • Acquisition channels in Arabic

  • All websites dashboard in Arabic

  • Arabic language in the personal settings

  • Dashboard in Arabic

  • Locations and visitor map in Arabic

  • Tag Manager tags in Arabic

  • Visitors overview in Arabic

  • Visits log in Arabic

Which languages are displayed right to left?

Every language written from right to left: Arabic, Persian, Hebrew, Urdu and Dhivehi, the right-to-left languages Matomo ships today, plus Pashto, Sindhi, Kurdish Sorani, Uyghur, Yiddish, Kashmiri and Aramaic for future translations. Kurdish as shipped by Matomo is written in the Latin script, so it stays left to right.

How do I switch my interface to right to left?

Pick a right-to-left language in Personal > Settings > Language. The direction follows the language, there is no separate option.

Does it change the interface for every user?

No. Each user gets the direction of their own language. Users with a left-to-right language see no change at all.

Are third party plugins mirrored too?

Yes. Matomo compiles one stylesheet from every activated plugin and theme, and Right To Left mirrors that stylesheet. A plugin that positions elements from JavaScript, or with inline styles, may need its own adjustments: please open an issue with a screenshot.

Why are charts still drawn from left to right?

Time axes and maps keep their usual orientation, as in most right-to-left analytics tools, so evolution graphs read the same way in every language.

Some elements still look left to right after an update.

Run ./console core:clear-caches on the server, or empty tmp/assets/. The mirrored stylesheet is rebuilt on the next page view.

Does it change my data?

No. The plugin only changes how the interface is displayed.

What happens when Matomo supports right-to-left languages natively?

Right To Left steps aside on its own: as soon as Matomo declares the direction of its pages itself, the plugin leaves them untouched, so the interface is never mirrored twice. You can then deactivate the plugin.

View and download this plugin for a specific Matomo version:


Please share