How can I set a different theme basing on the language currently used for the page? We have built one website in English and we want to translate it in Arabic.

Since I am new to Drupal, I am not sure how I can set a theme for English, and one for Arabic. How should I achieve this?
you can check the current language with the languageManager (docs here)

Drupal::languageManager()


and then you can set a different theme with the theme service

\Drupal::service('theme_handler')-&gt;setDefault('test_theme');


Hope it helps,