diff --git a/src/mkdocs_git_revision_date_localized_plugin/plugin.py b/src/mkdocs_git_revision_date_localized_plugin/plugin.py index 38b747f..f0360c9 100644 --- a/src/mkdocs_git_revision_date_localized_plugin/plugin.py +++ b/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]: # theme locale if "theme" in config and "language" in config.get("theme"): custom_theme = config.get("theme") - 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") logging.debug( "Locale '%s' extracted from the custom theme: '%s'" % (theme_locale, custom_theme.name)