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?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityWe 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')->setDefault('test_theme');
Hope it helps,