Make dates respect current locale (deprecations!)

And make comments use it in a smart way (it's not but it works)

Deprecate "extra.date_format" and "extra.comments.locale" and replace it
with "date_format" and "date_locale" in translation files
This commit is contained in:
daudix
2024-06-20 19:24:31 +03:00
parent 13fad928f7
commit 238f84de30
16 changed files with 72 additions and 31 deletions

View File

@ -1,5 +1,11 @@
language_name = "English" # Shown in language picker for multi-language sites.
date_locale = "en-GB"
# Shown in language picker for multi-language sites
language_name = "English"
# Tera date format used for listing posts
# (post publication date, tag posts list...).
# Not used in comments, "date_locale" is used instead.
# See https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html
date_format = "%d %B %Y"
date_locale = "en_IE"
# Menu items.
# Should match the names in config.extra.nav.links and config.extra.footer.links.