Skip to content

Why does MkDocs Material not use MkDocs standard locale config key? #7446

Discussion options

You must be logged in to vote

Hello @yves-chevallier,
most likely since Material for MkDocs had language years before MkDocs had locale:

So many people used language instead of locale in their configuration, so there could be some sort of regressions when changing it.
If I remember correctly, different language code formats are also used, one uses - and the other _ to separate sublanguages, but I could be wrong here.
The base.html could in theory create a mapping of locale to language and vice-versa internally for the theme to allow for both syntaxes,…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@squidfunk
Comment options

@kamilkrzyskow
Comment options

Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants