Skip to content

Commit cc93b54

Browse files
committed
fix(i18n): Use translated date for last update
The date was not translated. This commit should fix it.
1 parent b93e2a9 commit cc93b54

File tree

7 files changed

+73
-14
lines changed

7 files changed

+73
-14
lines changed

i18n/en.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ other = "Improve this page"
44
[lastUpdated]
55
other = "Last updated"
66

7-
[lastUpdatedDateFormat]
8-
other = "{{ .Format \"January 2, 2006\" }}"
9-
107
[joinTitle]
118
other = "Join the social media revolution"
129

i18n/fr.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[improvePage]
2+
other = "Améliorer cette page"
3+
4+
[lastUpdated]
5+
other = "Dernière modification le"
6+
7+
[joinTitle]
8+
other = "Rejoignez la révolution du réseau social"
9+
10+
[joinText]
11+
other = "Mastodon est une plateforme libre, gratuite et décentraliséeis avec plus de trois millions de personnes"
12+
13+
[joinAction]
14+
other = "Rejoignez Mastodon maintenant !"
15+
16+
[merch]
17+
other = "Goodies"
18+
19+
[shirtsAndStickers]
20+
other = "T-shirts et stickers"
21+
22+
[joinMastodon]
23+
other = "Rejoindre Mastodon"
24+
25+
[blog]
26+
other = "Blog"
27+
28+
[viewSource]
29+
other = "Accéder à la source"
30+
31+
[imprint]
32+
other = "Mentions légales"
33+
34+
[formDataParameters]
35+
other = "Paramètres disponibles"
36+
37+
[headers]
38+
other = "Entêtes"
39+
40+
[required]
41+
other = "obligatoire"
42+
43+
[optional]
44+
other = "optionnel"
45+
46+
[deprecated]
47+
other = "déprécié"
48+
49+
[removed]
50+
other = "supprimé"
51+
52+
[nullable]
53+
other = "nullable"
54+
55+
[pathParameters]
56+
other = "Paramètres de chemin"
57+
58+
[queryParameters]
59+
other = "Paramètres de requête"
60+
61+
[request]
62+
other = "Requête"
63+
64+
[response]
65+
other = "Réponse"
66+
67+
[otherTranslations]
68+
other = "Aussi disponible en :"
69+
70+
[sponsoredBy]
71+
other = "Sponsorisé par"

i18n/ja.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ other = "このページを改善する"
44
[lastUpdated]
55
other = "最終更新"
66

7-
[lastUpdatedDateFormat]
8-
other = "{{ .Format \"January 2, 2006\" }}"
9-
107
[joinTitle]
118
other = "ソーシャルメディア革命に参加する"
129

i18n/pl.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ other = "Popraw tę stronę"
44
[lastUpdated]
55
other = "Ostatnio aktualizowano"
66

7-
[lastUpdatedDateFormat]
8-
other = "{{ .Format \"January 2, 2006\" }}"
9-
107
[joinTitle]
118
other = "Przyłącz się do rewolucji w mediach społecznościowych"
129

i18n/zh-cn.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ other = "改进此页面"
44
[lastUpdated]
55
other = "最后更新于"
66

7-
[lastUpdatedDateFormat]
8-
other = "{{ .Format \"January 2, 2006\" }}"
9-
107
[joinTitle]
118
other = "加入社交媒体革命"
129

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
1111
{{ .Content }}
1212

1313
<p style="color: #606085;">
14-
{{ 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>
14+
{{ 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>
1515

1616
{{ if .IsTranslated }}
1717
<br />

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
1111
{{ .Content }}
1212

1313
<p style="color: #606085;">
14-
{{ 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>
14+
{{ 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>
1515

1616
{{ if .IsTranslated }}
1717
<br />

0 commit comments

Comments
 (0)