I installed the Gtranslate module in Drupal 8, and I added its block in the right region.

The default language is English. When I change it to French, all the text is changed to French. When I refresh the page, the text is still show in French, but the default value is changed to English.

I debugged the module and found that $_SERVER['HTTP_X_GT_LANG'] is always undefined.

Does anyone know how to fix this issue?

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.