We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 407346e + 95fb5fd commit a1df023Copy full SHA for a1df023
src/mkdocs_git_revision_date_localized_plugin/plugin.py
@@ -78,7 +78,7 @@ def on_config(self, config: config_options.Config, **kwargs) -> Dict[str, Any]:
78
# theme locale
79
if "theme" in config and "language" in config.get("theme"):
80
custom_theme = config.get("theme")
81
- theme_locale = custom_theme._vars.get("language")
+ theme_locale = custom_theme["language"] if Version(mkdocs_version) >= Version("1.6.0") else custom_theme._vars.get("language")
82
logging.debug(
83
"Locale '%s' extracted from the custom theme: '%s'"
84
% (theme_locale, custom_theme.name)
0 commit comments