-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
No response
Bug description
Using the blog plugin with the language set to pt-BR, there is a problem with the babel format_date, with the given locale.
The locale is set by getting the langauge config, in this case pt-BR, but babel does not support the hifen (it must be an undescore). So ther error happens.
Line 803 from https://github.com/squidfunk/mkdocs-material/blob/master/src/plugins/blog/plugin.py
This error problably happens with other languages with hifen (e.g. ku-IQ)
The solution would be to replace the hifen (-) with (_)
Related links
Reproduction
Steps to reproduce
- Setting up a blog
- Start the mkdocs, using docker:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
Browser
Chrome
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open