Merge branch 'make-translatable/last-updated-at-format' into 'master'

make last updated date format translatable

See merge request mastodon/docs!67
This commit is contained in:
Eugen Rochko 2020-01-05 05:33:34 +01:00
commit d827a05656
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
other = "Improve this page"
[lastUpdated]
other = "Last updated"
other = "Last updated {{ .Format \"January 2, 2006\" }}"
[joinTitle]
other = "Join the social media revolution"

View File

@ -11,7 +11,7 @@
{{ .Content }}
<p style="color: #687590;">
{{ i18n "lastUpdated" }} {{ .Lastmod.Format "January 2, 2006" }}{{ with .File }} · <a href='https://source.joinmastodon.org/mastodon/docs/tree/master/content/{{ .Lang }}/{{ .Path }}' style="color: #687590;">{{ i18n "improvePage" }}{{ end }}</a>
{{ i18n "lastUpdated" .Lastmod }}{{ with .File }} · <a href='https://source.joinmastodon.org/mastodon/docs/tree/master/content/{{ .Lang }}/{{ .Path }}' style="color: #687590;">{{ i18n "improvePage" }}{{ end }}</a>
{{ if .IsTranslated }}
<br />