Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

Xiaokang2022
Copy link
Contributor

@Xiaokang2022 Xiaokang2022 commented Sep 8, 2024

#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.

Fixed the bug that the configuration option `theme.language` in mkdocs.yml was not fetched correctly under the `mkdocs-material` theme
@timvink timvink merged commit ad78b99 into timvink:master Sep 8, 2024
13 checks passed
@timvink
Copy link
Owner

timvink commented Sep 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants