You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
theme.locale of Mkdocs basically uses ISO-639-12-letter abbreviation (en), and may also include a territory suffix (_US).
And the language code in RSS follows W3C / RFC 1766 / full ISO-639. I guess it's consistent with HTML, which follows RFC 5646 (a newer version of RFC 1766).
Additionally, you can't write hyphen (en-US) in mkdocs.yml.
$ mkdocs build
ERROR - Config value 'theme': Invalid value for locale: expected only letters, got 'en-US'
Aborted with 1 Configuration Errors!
Example
en_US
. (underscore)en-US
. (hyphen)Explaination
theme.locale
of Mkdocs basically uses ISO-639-1 2-letter abbreviation (en
), and may also include a territory suffix (_US
).Additionally, you can't write hyphen (
en-US
) inmkdocs.yml
.Possible fix
(I can turn it into a PR if you want)
Change the following line in
.util.Util.guess_locale
mkdocs-rss-plugin/mkdocs_rss_plugin/util.py
Line 563 in 769744e
to
The text was updated successfully, but these errors were encountered: