Skip to content

Commit f509a50

Browse files
Add RTL support for Hebrew and fix i18n date formatting (#1595)
RTL support: - Set languageDirection = "rtl" in Hebrew language config - Migrate physical directional Tailwind classes to logical equivalents - Clients.html: use dir="auto" for software names to prevent errors Date formatting: - Replace .Format "January 2, 2006" with time.Format ":date_long" to prevent English in translated dates Home hero: - Prepare certificate count animation for better i18n and looking ahead to 1B+ certificates Closes #1595
1 parent 6538bbf commit f509a50

52 files changed

Lines changed: 318 additions & 98 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/_default/languages.he.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ contentDir = "content/he"
33
languageName = "עברית"
44
languageCode = "he"
55
weight = 325
6+
languageDirection = "rtl"
67

78
[params]
89
beforeColon = ""

i18n/am.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
407407
other = "A nonprofit providing free TLS certificates to more than"
408408

409409
[home_hero_certificate_count]
410-
other = "700M"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "M"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "websites"

i18n/ca.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
407407
other = "A nonprofit providing free TLS certificates to more than"
408408

409409
[home_hero_certificate_count]
410-
other = "700M"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "M"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "websites"

i18n/cs.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "Nezisková organizace poskytující bezplatné TLS certifikáty pro ví
407407
other = "Nezisková organizace poskytující bezplatné TLS certifikáty pro více než"
408408

409409
[home_hero_certificate_count]
410-
other = "700m"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "m"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "webových stránek"

i18n/da.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "En nonprofit, der leverer gratis TLS-certifikater til mere end ### hjem
407407
other = "En nonprofit, der leverer gratis TLS-certifikater til mere end"
408408

409409
[home_hero_certificate_count]
410-
other = "700M"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "M"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "websites"

i18n/de.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
407407
other = "A nonprofit providing free TLS certificates to more than"
408408

409409
[home_hero_certificate_count]
410-
other = "700M"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "M"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "websites"

i18n/el.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
407407
other = "A nonprofit providing free TLS certificates to more than"
408408

409409
[home_hero_certificate_count]
410-
other = "700M"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "M"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "websites"

i18n/en.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,16 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
413413
other = "A nonprofit providing free TLS certificates to more than"
414414

415415
[home_hero_certificate_count]
416-
other = "700M"
416+
other = "700"
417+
418+
[abbreviation_million]
419+
other = "M"
420+
421+
[abbreviation_billion]
422+
other = "B"
423+
424+
[certificate_count_format]
425+
other = "[Number][Abbreviation]"
417426

418427
[home_hero_nonprofit_suffix]
419428
other = "websites"

i18n/es.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,13 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
407407
other = "A nonprofit providing free TLS certificates to more than"
408408

409409
[home_hero_certificate_count]
410-
other = "700M"
410+
other = "700"
411+
412+
[abbreviation_million]
413+
other = "M"
414+
415+
[abbreviation_billion]
416+
other = ""
411417

412418
[home_hero_nonprofit_suffix]
413419
other = "websites"

i18n/fa.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,13 @@ other = "A nonprofit providing free TLS certificates to more than ### websites"
411411
other = "A nonprofit providing free TLS certificates to more than"
412412

413413
[home_hero_certificate_count]
414-
other = "700M"
414+
other = "700"
415+
416+
[abbreviation_million]
417+
other = "M"
418+
419+
[abbreviation_billion]
420+
other = ""
415421

416422
[home_hero_nonprofit_suffix]
417423
other = "websites"

0 commit comments

Comments
 (0)