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

3
content/demo/code.ar.md Normal file
View File

@ -0,0 +1,3 @@
+++
title = "Code Block Demo (العربية)"
+++

3
content/demo/code.ru.md Normal file
View File

@ -0,0 +1,3 @@
+++
title = "Code Block Demo (Русский)"
+++

View File

@ -0,0 +1,8 @@
+++
template = "article.html"
title = "ActivityPub/Fediverse comments demo (العربية)"
[extra.comments]
host = "toot.community"
user = "sungsphinx"
id = "111784580759701190"
+++

View File

@ -0,0 +1,8 @@
+++
template = "article.html"
title = "ActivityPub/Fediverse comments demo (Русский)"
[extra.comments]
host = "toot.community"
user = "sungsphinx"
id = "111784580759701190"
+++

4
content/demo/page.ar.md Normal file
View File

@ -0,0 +1,4 @@
+++
+++
# Welcome to the cake party (العربية)

4
content/demo/page.ru.md Normal file
View File

@ -0,0 +1,4 @@
+++
+++
# Welcome to the cake party (Русский)