mkdocs-static-i18n: [Bug] html `lang` attribute not changing on language switch

Example page: https://docs.coregames.com/

Steps:

  • Go to above website, inspect and check HTML’s lang tag value. It should be en.
  • Use the language switcher and switch to Francais (Beta). lang stays at en.

Config:

  - i18n:
      default_language: en
      languages:
        fr: Français (Beta)

It works on https://ultrabug.github.io/mkdocs-static-i18n/ so I’m suspecting some config.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

ahah, best fix is no fix 😉 enjoy mate, closing

I understand mate.

Maybe there’s another way to get the name of the theme that’s being used instead of just reading the one declared from the config file when it’s set to null

I’ll give it a try and try to be smart, stay tuned (after dinner) 😃