Adding langage selector to your tutor instance

Hi

If you would like to add a language selector to your tutor instance

First, add the languages that you want to be running: in this example FR and EN

tutor local run lms ./manage.py lms shell -c "from openedx.core.djangoapps.dark_lang.models import DarkLangConfig; DarkLangConfig.objects.create(enabled=True, released_languages='fr,en')";

Then add this plugin if you want your langage selector to be in the header:

name: langselector
version: 0.1.0
patches:
  lms-env-features: |
    "SHOW_HEADER_LANGUAGE_SELECTOR": true

or this one, if you want to have it in the footer

name: langselector
version: 0.1.0
patches:
  lms-env-features: |
    "SHOW_FOOTER_LANGUAGE_SELECTOR": true

Cheers

3 Likes

This is just great, thanks @nachham!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.