Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(i18n): Use localized translated date for last page update #1602

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ other = "Improve this page"
[lastUpdated]
other = "Last updated"

[lastUpdatedDateFormat]
other = "{{ .Format \"January 2, 2006\" }}"

[joinTitle]
other = "Join the social media revolution"

Expand Down
3 changes: 0 additions & 3 deletions i18n/ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ other = "このページを改善する"
[lastUpdated]
other = "最終更新"

[lastUpdatedDateFormat]
other = "{{ .Format \"January 2, 2006\" }}"

[joinTitle]
other = "ソーシャルメディア革命に参加する"

Expand Down
3 changes: 0 additions & 3 deletions i18n/pl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ other = "Popraw tę stronę"
[lastUpdated]
other = "Ostatnio aktualizowano"

[lastUpdatedDateFormat]
other = "{{ .Format \"January 2, 2006\" }}"

[joinTitle]
other = "Przyłącz się do rewolucji w mediach społecznościowych"

Expand Down
3 changes: 0 additions & 3 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ other = "改进此页面"
[lastUpdated]
other = "最后更新于"

[lastUpdatedDateFormat]
other = "{{ .Format \"January 2, 2006\" }}"

[joinTitle]
other = "加入社交媒体革命"

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
{{ .Content }}

<p style="color: #606085;">
{{ i18n "lastUpdated" }} {{ .Lastmod.Format "January 2, 2006" }}{{ with .File }} · <a href='https://github.com/mastodon/documentation/tree/main/content/{{ page.Language.Lang }}/{{ .Path }}' style="color: #606085;">{{ i18n "improvePage" }}{{ end }}</a>
{{ i18n "lastUpdated" }} {{ .Lastmod | time.Format ":date_long" }}{{ with .File }} · <a href='https://github.com/mastodon/documentation/tree/main/content/{{ page.Language.Lang }}/{{ .Path }}' style="color: #606085;">{{ i18n "improvePage" }}{{ end }}</a>

{{ if .IsTranslated }}
<br />
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
{{ .Content }}

<p style="color: #606085;">
{{ i18n "lastUpdated" }} {{ i18n "lastUpdatedDateFormat" .Lastmod }}{{ with .File }} · <a href='https://github.com/mastodon/documentation/tree/main/content/{{ page.Language.Lang }}/{{ .Path }}' style="color: #606085;">{{ i18n "improvePage" }}{{ end }}</a>
{{ i18n "lastUpdated" }} {{ .Lastmod | time.Format ":date_long" }}{{ with .File }} · <a href='https://github.com/mastodon/documentation/tree/main/content/{{ page.Language.Lang }}/{{ .Path }}' style="color: #606085;">{{ i18n "improvePage" }}{{ end }}</a>

{{ if .IsTranslated }}
<br />
Expand Down