timvink / mkdocs-git-revision-date-localized-plugin

MkDocs plugin to add a last updated date to your site pages
https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html
MIT License
200 stars 40 forks source link

Fixed the bug that the configuration option `theme.language` in mkdocs.yml was not fetched correctly under the `mkdocs-material` theme #143

Closed Xiaokang2022 closed 1 week ago

Xiaokang2022 commented 1 week ago

142

The logic in the original code would have tried to get the configuration option called locale first, and then the configuration option called language.

But in fact, even without the locale option, locale still has a default value of 'en' (I guess), which caused the code to not even get to the part where it gets the language, so I just switched the order.

This problem doesn't just occur when the type is timeago, but others as well.

timvink commented 1 week ago

Released: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.8