Skip to content

Commit 530e842

Browse files
authored
Merge pull request #132 from dbermuehler/master
Fixing _vars deprecation warning
2 parents af27290 + 0785c3c commit 530e842

File tree

1 file changed

+1
-1
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+1
-1
lines changed

mkdocs_git_revision_date_localized_plugin/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def on_config(self, config: config_options.Config, **kwargs) -> Dict[str, Any]:
7979
# theme locale
8080
if "theme" in config and "locale" in config.get("theme"):
8181
custom_theme = config.get("theme")
82-
theme_locale = custom_theme._vars.get("locale")
82+
theme_locale = custom_theme.locale
8383
logging.debug(
8484
"Locale '%s' extracted from the custom theme: '%s'"
8585
% (theme_locale, custom_theme.name)

0 commit comments

Comments
 (0)