Single language website - RTL

Hello.
I have a project that will be in Arabic (RTL) only. Do I have to set up my site/languages/ar.php? I want the Panel and frontend to be in Arabic.

Hi,

Sure, you can use like that

/site/config/config.php

return [
  'locale' => 'ar_SA',
  'panel'  => [
    'language' => 'ar'
  ]
];

And frontend usage on template

<html class="no-js" lang="ar" direction="rtl">

Hi,

I’m guessing I don’t need to have the site/languages/ar.php?

Thanks.

No if you don’t need store translations as array in site/languages/ar.php. But if you plan to add languages in the future, I suggest you use it.

1 Like