Closed Guts closed 4 years ago
Lets' use the fixtures used in tests, just moving from nl to fr to see more obvious difference:
nl
fr
site_name: test gitrevisiondatelocalized_plugin use_directory_urls: true locale: fr plugins: - search - git-revision-date-localized
mkdocs serve -f .\tests\basic_setup\mkdocs_locale.yml
The error is located in this line:
https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/blob/2f8dc73ffc033d68e310441f0f8fc79ba27e6858/mkdocs_git_revision_date_localized_plugin/util.py#L81
Should pass the inherited locale:
locale
return self._date_formats(unix_timestamp=unix_timestamp, locale=locale)
Reproduce
Lets' use the fixtures used in tests, just moving from
nl
tofr
to see more obvious difference:mkdocs serve -f .\tests\basic_setup\mkdocs_locale.yml
Expected result
Debug
The error is located in this line:
https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/blob/2f8dc73ffc033d68e310441f0f8fc79ba27e6858/mkdocs_git_revision_date_localized_plugin/util.py#L81
Should pass the inherited
locale
: